Class PassThroughConfiguration
java.lang.Object
org.apache.synapse.transport.passthru.config.PassThroughConfiguration
This class encapsulates pass-through http transport tuning configurations specified via a
configurations file or system properties.
-
Method Summary
Modifier and TypeMethodDescriptiongetBooleanProperty(String name) getBooleanProperty(String name, Boolean def) intintReturns the compiled pattern an incoming correlation header value must match, or null if validation is not configured or the configured regex is invalid.static PassThroughConfigurationgetIntProperty(String name, Integer def) intintintintintGet the default synapse service nameintintintintgetStringProperty(String name, String def) intintintintbooleanReturns whether requests with an activity ID header value that does not match the configured validation regex should be rejected.booleanbooleanbooleanbooleanbooleanbooleanbooleanGet the value of the property to ignore case-sensitive headers from excess headersbooleanbooleanbooleanbooleanbooleanCheck for reverse proxy modebooleanbooleanvoidreload()Reloads properties from "passthru-http.properties", picking up the current CONF_LOCATION.
-
Method Details
-
getInstance
-
reload
public void reload()Reloads properties from "passthru-http.properties", picking up the current CONF_LOCATION. -
getWorkerPoolCoreSize
public int getWorkerPoolCoreSize() -
getSecondaryWorkerPoolCoreSize
public int getSecondaryWorkerPoolCoreSize() -
getWorkerPoolMaxSize
public int getWorkerPoolMaxSize() -
getSecondaryWorkerPoolMaxSize
public int getSecondaryWorkerPoolMaxSize() -
getWorkerThreadKeepaliveSec
public int getWorkerThreadKeepaliveSec() -
getSecondaryWorkerThreadKeepaliveSec
public int getSecondaryWorkerThreadKeepaliveSec() -
getWorkerPoolQueueLen
public int getWorkerPoolQueueLen() -
getSecondaryWorkerPoolQueueLen
public int getSecondaryWorkerPoolQueueLen() -
getIOThreadsPerReactor
public int getIOThreadsPerReactor() -
getIOBufferSize
public int getIOBufferSize() -
isKeepAliveDisabled
public boolean isKeepAliveDisabled() -
isCloseSocketOnEndpointTimeout
public boolean isCloseSocketOnEndpointTimeout() -
isTLSGracefulConnectionTerminationEnabled
public boolean isTLSGracefulConnectionTerminationEnabled() -
isConsumeAndDiscard
public boolean isConsumeAndDiscard() -
isConsumeAndDiscardBySecondaryWorkerPool
public boolean isConsumeAndDiscardBySecondaryWorkerPool() -
getMaxActiveConnections
public int getMaxActiveConnections() -
getListenerShutdownWaitTime
public int getListenerShutdownWaitTime() -
isPreserveUserAgentHeader
public boolean isPreserveUserAgentHeader() -
isPreserveServerHeader
public boolean isPreserveServerHeader() -
isForcedXmlMessageValidationEnabled
public boolean isForcedXmlMessageValidationEnabled() -
isForcedJSONMessageValidationEnabled
public boolean isForcedJSONMessageValidationEnabled() -
getPreserveHttpHeaders
-
getResponsePreseveHttpHeaders
-
isDuplicateResponseContentTypeHeaderRemovalEnabled
public boolean isDuplicateResponseContentTypeHeaderRemovalEnabled() -
isServiceListBlocked
public boolean isServiceListBlocked() -
getConnectionIdleTime
public int getConnectionIdleTime() -
getMaximumConnectionLifespan
public int getMaximumConnectionLifespan() -
getConnectionGraceTime
public int getConnectionGraceTime() -
getCorrelationHeaderName
-
getCorrelationHeaderValidationPattern
Returns the compiled pattern an incoming correlation header value must match, or null if validation is not configured or the configured regex is invalid.- Returns:
- compiled correlation header validation pattern or null
-
isActivityIdHeaderRejectEnabled
public boolean isActivityIdHeaderRejectEnabled()Returns whether requests with an activity ID header value that does not match the configured validation regex should be rejected. Defaults to false, in which case a new correlation ID is generated for such requests.- Returns:
- true if the configured activity ID header validation action is "reject"
-
getExpectedMaxQueueingTime
-
getExpectedMaxQueueingTimeForMessageDiscardWorker
-
getBooleanProperty
-
getBooleanProperty
-
getIntProperty
-
getStringProperty
-
getRESTDispatchService
-
getRestUriApiRegex
-
getRestUriProxyRegex
-
getAllowedResponseProperties
-
isReverseProxyMode
public boolean isReverseProxyMode()Check for reverse proxy mode- Returns:
- whether reverse proxy mode is enabled
-
getPassThroughDefaultServiceName
Get the default synapse service name- Returns:
- default synapse service name
-
isIgnoreCaseSensitiveHeaders
public boolean isIgnoreCaseSensitiveHeaders()Get the value of the property to ignore case-sensitive headers from excess headers- Returns:
- Value of the property
-