Class SourceConfiguration
java.lang.Object
org.apache.synapse.transport.passthru.config.BaseConfiguration
org.apache.synapse.transport.passthru.config.SourceConfiguration
This class stores configurations specific to the Listeners
-
Field Summary
Fields inherited from class org.apache.synapse.transport.passthru.config.BaseConfiguration
bufferFactory, conf, configurationContext, httpParams, ioReactorConfig, parameters, preserveHttpHeaders, preserveServerHeader, preserveUserAgentHeader -
Constructor Summary
ConstructorsConstructorDescriptionSourceConfiguration(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.TransportInDescription description, Scheme scheme, org.apache.axis2.transport.base.threads.WorkerPool pool, PassThroughTransportMetricsCollector metrics) SourceConfiguration(org.apache.axis2.transport.base.threads.WorkerPool pool, PassThroughTransportMetricsCollector metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()booleangetBooleanValue(String name, boolean def) return boolean value of the given property else return default value.org.apache.http.params.HttpParamsorg.apache.http.protocol.HttpProcessororg.apache.axis2.description.TransportInDescriptionorg.apache.http.impl.nio.reactor.IOReactorConfigintgetPort()org.apache.http.HttpResponseFactoryprotected StringgetServiceEPRPrefix(org.apache.axis2.context.ConfigurationContext cfgCtx, String wsdlEPRPrefix) Return the EPR prefix for services made available over this transportprotected StringgetServiceEPRPrefix(org.apache.axis2.context.ConfigurationContext cfgCtx, String host, int port) Return the EPR prefix for services made available over this transportMethods inherited from class org.apache.synapse.transport.passthru.config.BaseConfiguration
buildHttpParams, buildIOReactorConfig, getBufferFactory, getConfigurationContext, getIOBufferSize, getMetrics, getPreserveHttpHeaders, getSecondaryWorkerPool, getWorkerPool, getWorkerPool, isCorrelationLoggingEnabled, isPreserveHttpHeader, populatePreserveHttpHeaders
-
Constructor Details
-
SourceConfiguration
public SourceConfiguration(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.description.TransportInDescription description, Scheme scheme, org.apache.axis2.transport.base.threads.WorkerPool pool, PassThroughTransportMetricsCollector metrics) -
SourceConfiguration
public SourceConfiguration(org.apache.axis2.transport.base.threads.WorkerPool pool, PassThroughTransportMetricsCollector metrics)
-
-
Method Details
-
build
public void build() throws org.apache.axis2.AxisFault- Overrides:
buildin classBaseConfiguration- Throws:
org.apache.axis2.AxisFault
-
getHttpParams
public org.apache.http.params.HttpParams getHttpParams() -
getIOReactorConfig
public org.apache.http.impl.nio.reactor.IOReactorConfig getIOReactorConfig() -
getHttpProcessor
public org.apache.http.protocol.HttpProcessor getHttpProcessor() -
getResponseFactory
public org.apache.http.HttpResponseFactory getResponseFactory() -
getHostname
-
getPort
public int getPort() -
getSourceConnections
-
getInDescription
public org.apache.axis2.description.TransportInDescription getInDescription() -
getScheme
-
getServiceEPRPrefix
-
getCustomEPRPrefix
-
getHttpGetRequestProcessor
-
getServiceEPRPrefix
protected String getServiceEPRPrefix(org.apache.axis2.context.ConfigurationContext cfgCtx, String wsdlEPRPrefix) Return the EPR prefix for services made available over this transport- Parameters:
cfgCtx- configuration context to retrieve the service context pathwsdlEPRPrefix- specified wsdlPrefix- Returns:
- wsdlEPRPrefix for the listener
-
getServiceEPRPrefix
protected String getServiceEPRPrefix(org.apache.axis2.context.ConfigurationContext cfgCtx, String host, int port) Return the EPR prefix for services made available over this transport- Parameters:
cfgCtx- configuration context to retrieve the service context pathhost- name of the hostport- listening port- Returns:
- wsdlEPRPrefix for the listener
-
getBooleanValue
return boolean value of the given property else return default value.- Parameters:
name- Name of the Propertydef- Default value- Returns:
-