org.apache.synapse.transport.nhttp
Class NHttpConfiguration

java.lang.Object
  extended by org.apache.synapse.transport.nhttp.NHttpConfiguration

public final class NHttpConfiguration
extends Object

Store and manage properties that tune the nhttp transport


Field Summary
static String BLOCK_SERVICE_LIST
          Comma separated list of blocked uris
static String BLOCK_SERVICE_LIST_DEFAULT
          Default value for BLOCK_SERVICE_LIST
 
Method Summary
 boolean getBooleanValue(String name, boolean def)
          Get properties that tune nhttp transport.
 int getBufferSize()
           
 int getClientCoreThreads()
           
 int getClientIOWorkers()
           
 int getClientKeepalive()
           
 int getClientMaxThreads()
           
 int getClientQueueLen()
           
static NHttpConfiguration getInstance()
           
 int getProperty(String name, int def)
          Get properties that tune nhttp transport.
 int getServerCoreThreads()
           
 int getServerIOWorkers()
           
 int getServerKeepalive()
           
 int getServerMaxThreads()
           
 int getServerQueueLen()
           
 String getStringValue(String name, String def)
          Get properties that tune nhttp transport.
 boolean isCountConnections()
           
 boolean isHttpMethodDisabled(String method)
           
 boolean isKeepAliveDisabled()
           
 boolean isPreserveServerHeader()
           
 boolean isPreserveUserAgentHeader()
           
 String isServiceListBlocked()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCK_SERVICE_LIST

public static final String BLOCK_SERVICE_LIST
Comma separated list of blocked uris

See Also:
Constant Field Values

BLOCK_SERVICE_LIST_DEFAULT

public static final String BLOCK_SERVICE_LIST_DEFAULT
Default value for BLOCK_SERVICE_LIST

See Also:
Constant Field Values
Method Detail

getInstance

public static NHttpConfiguration getInstance()

getServerCoreThreads

public int getServerCoreThreads()

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()

getBufferSize

public int getBufferSize()

isKeepAliveDisabled

public boolean isKeepAliveDisabled()

isPreserveUserAgentHeader

public boolean isPreserveUserAgentHeader()

isPreserveServerHeader

public boolean isPreserveServerHeader()

isCountConnections

public boolean isCountConnections()

isServiceListBlocked

public String isServiceListBlocked()

getProperty

public int getProperty(String name,
                       int def)
Get properties that tune nhttp transport. Preference to system properties

Parameters:
name - name of the system/config property
def - default value to return if the property is not set
Returns:
the value of the property to be used

getBooleanValue

public boolean getBooleanValue(String name,
                               boolean def)
Get properties that tune nhttp transport. Preference to system properties

Parameters:
name - name of the system/config property
def - default value to return if the property is not set
Returns:
the value of the property to be used

getStringValue

public String getStringValue(String name,
                             String def)
Get properties that tune nhttp transport. Preference to system properties

Parameters:
name - name of the system/config property
def - default value to return if the property is not set
Returns:
the value of the property to be used

isHttpMethodDisabled

public boolean isHttpMethodDisabled(String method)


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.