Class BaseConfiguration
java.lang.Object
org.apache.synapse.transport.passthru.config.BaseConfiguration
- Direct Known Subclasses:
SourceConfiguration,TargetConfiguration
This class has common configurations for both sender and receiver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BufferFactoryprotected PassThroughConfigurationprotected org.apache.axis2.context.ConfigurationContextThe Axis2 ConfigurationContextprotected org.apache.http.params.HttpParamsDefault http parametersprotected org.apache.http.impl.nio.reactor.IOReactorConfigprotected org.apache.axis2.description.ParameterIncludeConfigurations given by axis2.xmlHttp headers which should be preservedprotected booleanWeather Server header coming from server should be preservedprotected booleanWeather User-Agent header coming from client should be preserved -
Constructor Summary
ConstructorsConstructorDescriptionBaseConfiguration(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.ParameterInclude parameters, org.apache.axis2.transport.base.threads.WorkerPool workerPool, PassThroughTransportMetricsCollector metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()protected org.apache.http.params.HttpParamsprotected org.apache.http.impl.nio.reactor.IOReactorConfigorg.apache.axis2.context.ConfigurationContextintorg.apache.axis2.transport.base.threads.WorkerPoolorg.apache.axis2.transport.base.threads.WorkerPoolorg.apache.axis2.transport.base.threads.WorkerPoolgetWorkerPool(int workerPoolCoreSize, int workerPoolMaxSize, int workerThreadKeepaliveSec, int workerPoolQueuLen, String threadGroupName, String threadgroupID) booleanisPreserveHttpHeader(String headerName) Check preserving status of the given http header nameprotected voidpopulatePreserveHttpHeaders(String preserveHeaders) Populate preserve http headers from comma separate string
-
Field Details
-
parameters
protected org.apache.axis2.description.ParameterInclude parametersConfigurations given by axis2.xml -
configurationContext
protected org.apache.axis2.context.ConfigurationContext configurationContextThe Axis2 ConfigurationContext -
httpParams
protected org.apache.http.params.HttpParams httpParamsDefault http parameters -
ioReactorConfig
protected org.apache.http.impl.nio.reactor.IOReactorConfig ioReactorConfig -
bufferFactory
-
preserveUserAgentHeader
protected boolean preserveUserAgentHeaderWeather User-Agent header coming from client should be preserved -
preserveServerHeader
protected boolean preserveServerHeaderWeather Server header coming from server should be preserved -
preserveHttpHeaders
Http headers which should be preserved -
conf
-
-
Constructor Details
-
BaseConfiguration
public BaseConfiguration(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.ParameterInclude parameters, org.apache.axis2.transport.base.threads.WorkerPool workerPool, PassThroughTransportMetricsCollector metrics)
-
-
Method Details
-
build
public void build() throws org.apache.axis2.AxisFault- Throws:
org.apache.axis2.AxisFault
-
getWorkerPool
-
getIOBufferSize
public int getIOBufferSize() -
getWorkerPool
public org.apache.axis2.transport.base.threads.WorkerPool getWorkerPool() -
getSecondaryWorkerPool
public org.apache.axis2.transport.base.threads.WorkerPool getSecondaryWorkerPool() -
getConfigurationContext
public org.apache.axis2.context.ConfigurationContext getConfigurationContext() -
buildHttpParams
protected org.apache.http.params.HttpParams buildHttpParams() -
buildIOReactorConfig
protected org.apache.http.impl.nio.reactor.IOReactorConfig buildIOReactorConfig() -
getBufferFactory
-
getMetrics
-
isCorrelationLoggingEnabled
-
isPreserveHttpHeader
Check preserving status of the given http header name- Parameters:
headerName- http header name which need to check preserving status- Returns:
- preserving status of the given http header
-
getPreserveHttpHeaders
-
populatePreserveHttpHeaders
Populate preserve http headers from comma separate string- Parameters:
preserveHeaders- Comma separated preserve enable http headers
-