Class NHttpConfiguration
java.lang.Object
org.apache.synapse.transport.nhttp.NHttpConfiguration
Store and manage properties that tune the nhttp transport
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreserveHeader(String header) booleangetBooleanValue(String name, boolean def) Get properties that tune nhttp transport.intintintintintintintintintintstatic NHttpConfigurationintintintbooleanGet the default synapse service nameintgetProperty(String name, int def) Get properties that tune nhttp transport.intintintintintgetStringValue(String name, String def) Get properties that tune nhttp transport.booleanbooleanbooleanisHttpMethodDisabled(String method) booleanbooleanbooleanisPreserveHttpHeader(String httpHeader) Check preserving status of the http header fieldbooleanCheck for reverse proxy modevoidremovePreserveHeader(String header)
-
Field Details
-
MAX_ACTIVE_CON
public static final int MAX_ACTIVE_CON- See Also:
-
TRANSPORT_LISTENER_SHUTDOWN_WAIT_TIME
- See Also:
-
DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME
public static final int DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME- See Also:
-
MESSAGE_SIZE_VALIDATION
- See Also:
-
VALID_MAX_MESSAGE_SIZE
- See Also:
-
BLOCK_SERVICE_LIST
Comma separated list of blocked uris- See Also:
-
BLOCK_SERVICE_LIST_DEFAULT
Default value for BLOCK_SERVICE_LIST- See Also:
-
-
Method Details
-
getInstance
-
getServerCoreThreads
public int getServerCoreThreads() -
addPreserveHeader
-
removePreserveHeader
-
getServerMaxThreads
public int getServerMaxThreads() -
getServerKeepalive
public int getServerKeepalive() -
getServerQueueLen
public int getServerQueueLen() -
getServerIOWorkers
public int getServerIOWorkers() -
getClientCoreThreads
public int getClientCoreThreads() -
getClientMaxThreads
public int getClientMaxThreads() -
getClientKeepalive
public int getClientKeepalive() -
getClientQueueLen
public int getClientQueueLen() -
getClientIOWorkers
public int getClientIOWorkers() -
getMaxActiveConnections
public int getMaxActiveConnections() -
getErrorHandlerCoreThreads
public int getErrorHandlerCoreThreads() -
getErrorHandlerTMaxThreads
public int getErrorHandlerTMaxThreads() -
getErrorHandlerKeepAlive
public int getErrorHandlerKeepAlive() -
getErrorHandlerQueuelen
public int getErrorHandlerQueuelen() -
isErrorHandlerPoolEnabled
public boolean isErrorHandlerPoolEnabled() -
getBufferSize
public int getBufferSize() -
isLogRotatable
public boolean isLogRotatable() -
isKeepAliveDisabled
public boolean isKeepAliveDisabled() -
isCountConnections
public boolean isCountConnections() -
isServiceListBlocked
-
getRESTDispatchService
-
getRestUriApiRegex
-
getRestUriProxyRegex
-
getListenerShutdownWaitTime
public int getListenerShutdownWaitTime() -
getMessageSizeValidationEnabled
public boolean getMessageSizeValidationEnabled() -
getMaxMessageSize
public int getMaxMessageSize() -
isPreserveHttpHeader
Check preserving status of the http header field- Parameters:
httpHeader- http header name- Returns:
- return true if preserve else false
-
getProperty
Get properties that tune nhttp transport. Preference to system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-
getBooleanValue
Get properties that tune nhttp transport. Preference to system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-
getStringValue
Get properties that tune nhttp transport. Preference to system properties- Parameters:
name- name of the system/config propertydef- default value to return if the property is not set- Returns:
- the value of the property to be used
-
isHttpMethodDisabled
-
isReverseProxyMode
public boolean isReverseProxyMode()Check for reverse proxy mode- Returns:
- whether reverse proxy mode is enabled
-
getNhttpDefaultServiceName
Get the default synapse service name- Returns:
- default synapse service name
-