java.lang .Object org.apache.axis2.transport.http.server .HttpFactory HttpFactory public class HttpFactory (Code) Factory used to configure and create the various instances required in http transports.
Either configure this class in axis2.xml, or in code via the setters, or subclass it and specialize some factory methods to gain more control.
author: Chuck Williams
PARAMETER_HOST_ADDRESS final public static String PARAMETER_HOST_ADDRESS (Code) Name of axis2.xml hostname parameter for SimpleHTTPServer configuration
PARAMETER_ORIGIN_SERVER final public static String PARAMETER_ORIGIN_SERVER (Code) Name of axis2.xml originServer parameter for SimpleHTTPServer configuration
PARAMETER_PORT final public static String PARAMETER_PORT (Code) Name of axis2.xml port parameter for SimpleHTTPServer configuration
PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE final public static String PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE (Code) Name of axis2.xml requestCoreThreadPoolSize parameter for SimpleHTTPServer configuration
PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE final public static String PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE (Code) Name of axis2.xml requestMaxThreadPoolSize parameter for SimpleHTTPServer configuration
PARAMETER_REQUEST_SOCKET_TIMEOUT final public static String PARAMETER_REQUEST_SOCKET_TIMEOUT (Code) Name of axis2.xml requestTimeout parameter for SimpleHTTPServer configuration
PARAMETER_REQUEST_TCP_NO_DELAY final public static String PARAMETER_REQUEST_TCP_NO_DELAY (Code) Name of axis2.xml requestTcpNoDelay parameter for SimpleHTTPServer configuration
PARAMETER_THREAD_KEEP_ALIVE_TIME final public static String PARAMETER_THREAD_KEEP_ALIVE_TIME (Code) Name of axis2.xml threadKeepAliveTime parameter for SimpleHTTPServer configuration
PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT final public static String PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT (Code) Name of axis2.xml threadKeepAliveTimeUnit parameter for SimpleHTTPServer configuration
getHostAddress public String getHostAddress()(Code) Getter for hostAddress
the host address (or name) to be use in reply-to endpoint references, or null if not specified (default = null)
getListenerManager public ListenerManager getListenerManager()(Code) Return the configured listener manager or create and configure one with configurationContext
getOriginServer public String getOriginServer()(Code) Getter for originServer
the Server header string for outgoing messages (default "Simple-Server/1.1")
getPort public int getPort()(Code) Getter for port
return the port on which to listen for http connections (default = 6060)
getRequestCoreThreadPoolSize public int getRequestCoreThreadPoolSize()(Code) Getter for RequestCoreThreadPoolSize
the size of the thread pool use to process requests assuming there is adequate queue space (default 25)
getRequestMaxThreadPoolSize public int getRequestMaxThreadPoolSize()(Code) Getter for requestMaxThreadPoolSize
the maximum size of the thread pool used to process requests if the queue fills up (default 150).Since the default queue is unbounded this parameter is meaningless unless you override newRequestBlockingQueue()
getRequestSocketTimeout public int getRequestSocketTimeout()(Code) Getter for requestSocketTimeout
the maximum time in millis to wait for data on a request socket (default 20000)
getRequestTcpNoDelay public boolean getRequestTcpNoDelay()(Code) Getter for requestTcpNoDelay
return false iff Nagle's algorithm should be used to conserve bandwidth by minimizing segments
at the cost of latency and performance (default true, i.e. maximize performance at
the cost of bandwidth)
getThreadKeepAliveTime public long getThreadKeepAliveTime()(Code) Getter for threadKeepAliveTime
how long a request processing thread in excess of the core pool size will be kept alive it if is inactive(default with threadKeepAliveTimeUnit to 180 seconds)
getThreadKeepAliveTimeUnit public TimeUnit getThreadKeepAliveTimeUnit()(Code) Getter for threadKeepAliveTimeUnit
return the time unit for threadKeepAliveTime (default SECONDS)
newConnStrategy public ConnectionReuseStrategy newConnStrategy()(Code)
newHttpProcessor public HttpProcessor newHttpProcessor()(Code)
newListenerExecutor public ExecutorService newListenerExecutor(int port)(Code) Create the executor used to launch the single requestConnectionListener
newRequestBlockingQueue public BlockingQueue newRequestBlockingQueue()(Code) Create the queue used to hold incoming requests when requestCoreThreadPoolSize threads are busy.
Default is an unbounded queue.
newRequestConnectionManager public HttpConnectionManager newRequestConnectionManager(ExecutorService requestExecutor, WorkerFactory workerFactory, HttpParams params)(Code) Create the connection manager used to launch request threads
newRequestConnectionParams public HttpParams newRequestConnectionParams()(Code) Create and set the parameters applied to incoming request connections
newRequestExecutor public ExecutorService newRequestExecutor(int port)(Code) Create the executor use the manage request processing threads
newRequestWorkerFactory public WorkerFactory newRequestWorkerFactory()(Code) Create the factory for request workers
newResponseFactory public HttpResponseFactory newResponseFactory()(Code)
setHostAddress public void setHostAddress(String hostAddress)(Code) Setter for hostAddress
setOriginServer public void setOriginServer(String originServer)(Code) Setter for originServer
setPort public void setPort(int port)(Code) Setter for port
setRequestCoreThreadPoolSize public void setRequestCoreThreadPoolSize(int requestCoreThreadPoolSize)(Code) Setter for RequestCoreThreadPoolSize
setRequestMaxThreadPoolSize public void setRequestMaxThreadPoolSize(int requestMaxThreadPoolSize)(Code) Setter for requestMaxThreadPoolSize
setRequestSocketTimeout public void setRequestSocketTimeout(int requestSocketTimeout)(Code) Setter for requestSocketTimeout
setRequestTcpNoDelay public void setRequestTcpNoDelay(boolean requestTcpNoDelay)(Code) Setter for requestTcpNoDelay
setThreadKeepAliveTime public void setThreadKeepAliveTime(long threadKeepAliveTime)(Code) Setter for threadKeepAliveTime
setThreadKeepAliveTimeUnit public void setThreadKeepAliveTimeUnit(TimeUnit threadKeepAliveTimeUnit)(Code) Setter for threadKeepAliveTimeUnit