public final class NHttpConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLOCK_SERVICE_LIST
Comma separated list of blocked uris
|
static java.lang.String |
BLOCK_SERVICE_LIST_DEFAULT
Default value for BLOCK_SERVICE_LIST
|
static int |
DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME |
static int |
MAX_ACTIVE_CON |
static java.lang.String |
MESSAGE_SIZE_VALIDATION |
static java.lang.String |
TRANSPORT_LISTENER_SHUTDOWN_WAIT_TIME |
static java.lang.String |
VALID_MAX_MESSAGE_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
addPreserveHeader(java.lang.String header) |
boolean |
getBooleanValue(java.lang.String name,
boolean def)
Get properties that tune nhttp transport.
|
int |
getBufferSize() |
int |
getClientCoreThreads() |
int |
getClientIOWorkers() |
int |
getClientKeepalive() |
int |
getClientMaxThreads() |
int |
getClientQueueLen() |
int |
getErrorHandlerCoreThreads() |
int |
getErrorHandlerKeepAlive() |
int |
getErrorHandlerQueuelen() |
int |
getErrorHandlerTMaxThreads() |
static NHttpConfiguration |
getInstance() |
int |
getListenerShutdownWaitTime() |
int |
getMaxActiveConnections() |
int |
getMaxMessageSize() |
boolean |
getMessageSizeValidationEnabled() |
java.lang.String |
getNhttpDefaultServiceName()
Get the default synapse service name
|
int |
getProperty(java.lang.String name,
int def)
Get properties that tune nhttp transport.
|
java.lang.String |
getRESTDispatchService() |
java.lang.String |
getRestUriApiRegex() |
java.lang.String |
getRestUriProxyRegex() |
int |
getServerCoreThreads() |
int |
getServerIOWorkers() |
int |
getServerKeepalive() |
int |
getServerMaxThreads() |
int |
getServerQueueLen() |
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String def)
Get properties that tune nhttp transport.
|
boolean |
isCountConnections() |
boolean |
isErrorHandlerPoolEnabled() |
boolean |
isHttpMethodDisabled(java.lang.String method) |
boolean |
isKeepAliveDisabled() |
boolean |
isLogRotatable() |
boolean |
isPreserveHttpHeader(java.lang.String httpHeader)
Check preserving status of the http header field
|
boolean |
isReverseProxyMode()
Check for reverse proxy mode
|
java.lang.String |
isServiceListBlocked() |
void |
removePreserveHeader(java.lang.String header) |
public static final int MAX_ACTIVE_CON
public static final java.lang.String TRANSPORT_LISTENER_SHUTDOWN_WAIT_TIME
public static final int DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME
public static final java.lang.String MESSAGE_SIZE_VALIDATION
public static final java.lang.String VALID_MAX_MESSAGE_SIZE
public static final java.lang.String BLOCK_SERVICE_LIST
public static final java.lang.String BLOCK_SERVICE_LIST_DEFAULT
public static NHttpConfiguration getInstance()
public int getServerCoreThreads()
public void addPreserveHeader(java.lang.String header)
public void removePreserveHeader(java.lang.String header)
public int getServerMaxThreads()
public int getServerKeepalive()
public int getServerQueueLen()
public int getServerIOWorkers()
public int getClientCoreThreads()
public int getClientMaxThreads()
public int getClientKeepalive()
public int getClientQueueLen()
public int getClientIOWorkers()
public int getMaxActiveConnections()
public int getErrorHandlerCoreThreads()
public int getErrorHandlerTMaxThreads()
public int getErrorHandlerKeepAlive()
public int getErrorHandlerQueuelen()
public boolean isErrorHandlerPoolEnabled()
public int getBufferSize()
public boolean isLogRotatable()
public boolean isKeepAliveDisabled()
public boolean isCountConnections()
public java.lang.String isServiceListBlocked()
public java.lang.String getRESTDispatchService()
public java.lang.String getRestUriApiRegex()
public java.lang.String getRestUriProxyRegex()
public int getListenerShutdownWaitTime()
public boolean getMessageSizeValidationEnabled()
public int getMaxMessageSize()
public boolean isPreserveHttpHeader(java.lang.String httpHeader)
httpHeader
- http header namepublic int getProperty(java.lang.String name, int def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic boolean getBooleanValue(java.lang.String name, boolean def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic java.lang.String getStringValue(java.lang.String name, java.lang.String def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic boolean isHttpMethodDisabled(java.lang.String method)
public boolean isReverseProxyMode()
public java.lang.String getNhttpDefaultServiceName()
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.