public final class NHttpConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BLOCK_SERVICE_LIST
Comma separated list of blocked uris
|
static String |
BLOCK_SERVICE_LIST_DEFAULT
Default value for BLOCK_SERVICE_LIST
|
static int |
DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME |
static int |
MAX_ACTIVE_CON |
static String |
MESSAGE_SIZE_VALIDATION |
static String |
TRANSPORT_LISTENER_SHUTDOWN_WAIT_TIME |
static String |
VALID_MAX_MESSAGE_SIZE |
public static final int MAX_ACTIVE_CON
public static final String TRANSPORT_LISTENER_SHUTDOWN_WAIT_TIME
public static final int DEFAULT_LISTENER_SHUTDOWN_WAIT_TIME
public static final String MESSAGE_SIZE_VALIDATION
public static final String VALID_MAX_MESSAGE_SIZE
public static final String BLOCK_SERVICE_LIST
public static final String BLOCK_SERVICE_LIST_DEFAULT
public static NHttpConfiguration getInstance()
public int getServerCoreThreads()
public void addPreserveHeader(String header)
public void removePreserveHeader(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 String isServiceListBlocked()
public String getRESTDispatchService()
public String getRestUriApiRegex()
public String getRestUriProxyRegex()
public int getListenerShutdownWaitTime()
public boolean getMessageSizeValidationEnabled()
public int getMaxMessageSize()
public boolean isPreserveHttpHeader(String httpHeader)
httpHeader
- http header namepublic int getProperty(String name, int def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic boolean getBooleanValue(String name, boolean def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic String getStringValue(String name, String def)
name
- name of the system/config propertydef
- default value to return if the property is not setpublic boolean isHttpMethodDisabled(String method)
public boolean isReverseProxyMode()
public String getNhttpDefaultServiceName()
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.