Class NHttpConfiguration


  • public final class NHttpConfiguration
    extends Object
    Store and manage properties that tune the nhttp transport
    • Method Detail

      • getServerCoreThreads

        public int getServerCoreThreads()
      • addPreserveHeader

        public void addPreserveHeader​(String header)
      • removePreserveHeader

        public void removePreserveHeader​(String header)
      • 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

        public String isServiceListBlocked()
      • getRESTDispatchService

        public String getRESTDispatchService()
      • getRestUriApiRegex

        public String getRestUriApiRegex()
      • getRestUriProxyRegex

        public String getRestUriProxyRegex()
      • getListenerShutdownWaitTime

        public int getListenerShutdownWaitTime()
      • getMessageSizeValidationEnabled

        public boolean getMessageSizeValidationEnabled()
      • getMaxMessageSize

        public int getMaxMessageSize()
      • isPreserveHttpHeader

        public boolean isPreserveHttpHeader​(String httpHeader)
        Check preserving status of the http header field
        Parameters:
        httpHeader - http header name
        Returns:
        return true if preserve else false
      • 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)
      • isReverseProxyMode

        public boolean isReverseProxyMode()
        Check for reverse proxy mode
        Returns:
        whether reverse proxy mode is enabled
      • getNhttpDefaultServiceName

        public String getNhttpDefaultServiceName()
        Get the default synapse service name
        Returns:
        default synapse service name