|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.http.server.HttpFactory
public class HttpFactory
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.
Field Summary | |
---|---|
static java.lang.String |
PARAMETER_HOST_ADDRESS
Name of axis2.xml hostname parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_ORIGIN_SERVER
Name of axis2.xml originServer parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_PORT
Name of axis2.xml port parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE
Name of axis2.xml requestCoreThreadPoolSize parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE
Name of axis2.xml requestMaxThreadPoolSize parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_REQUEST_SOCKET_TIMEOUT
Name of axis2.xml requestTimeout parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_REQUEST_TCP_NO_DELAY
Name of axis2.xml requestTcpNoDelay parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_THREAD_KEEP_ALIVE_TIME
Name of axis2.xml threadKeepAliveTime parameter for SimpleHTTPServer configuration |
static java.lang.String |
PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT
Name of axis2.xml threadKeepAliveTimeUnit parameter for SimpleHTTPServer configuration |
Constructor Summary | |
---|---|
HttpFactory(ConfigurationContext configurationContext)
Create and configure a new HttpFactory |
|
HttpFactory(ConfigurationContext configurationContext,
int port)
Create and configure a new HttpFactory |
|
HttpFactory(ConfigurationContext configurationContext,
int port,
WorkerFactory requestWorkerFactory)
Create and configure a new HttpFactory |
Method Summary | |
---|---|
ConfigurationContext |
getConfigurationContext()
Getter for configurationContext |
java.lang.String |
getHostAddress()
Getter for hostAddress |
TransportInDescription |
getHttpConfiguration()
Getter for httpConfiguration |
ListenerManager |
getListenerManager()
Return the configured listener manager or create and configure one with configurationContext |
java.lang.String |
getOriginServer()
Getter for originServer |
int |
getPort()
Getter for port return the port on which to listen for http connections (default = 6060) |
int |
getRequestCoreThreadPoolSize()
Getter for RequestCoreThreadPoolSize |
int |
getRequestMaxThreadPoolSize()
Getter for requestMaxThreadPoolSize |
int |
getRequestSocketTimeout()
Getter for requestSocketTimeout |
boolean |
getRequestTcpNoDelay()
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. |
long |
getThreadKeepAliveTime()
Getter for threadKeepAliveTime |
edu.emory.mathcs.backport.java.util.concurrent.TimeUnit |
getThreadKeepAliveTimeUnit()
Getter for threadKeepAliveTimeUnit return the time unit for threadKeepAliveTime (default SECONDS) |
org.apache.http.ConnectionReuseStrategy |
newConnStrategy()
|
org.apache.http.protocol.HttpProcessor |
newHttpProcessor()
|
edu.emory.mathcs.backport.java.util.concurrent.ExecutorService |
newListenerExecutor(int port)
Create the executor used to launch the single requestConnectionListener |
edu.emory.mathcs.backport.java.util.concurrent.BlockingQueue |
newRequestBlockingQueue()
Create the queue used to hold incoming requests when requestCoreThreadPoolSize threads are busy. |
IOProcessor |
newRequestConnectionListener(int port,
HttpConnectionManager manager,
org.apache.http.params.HttpParams params)
Create the listener for request connections |
HttpConnectionManager |
newRequestConnectionManager(edu.emory.mathcs.backport.java.util.concurrent.ExecutorService requestExecutor,
WorkerFactory workerFactory,
org.apache.http.params.HttpParams params)
Create the connection manager used to launch request threads |
org.apache.http.params.HttpParams |
newRequestConnectionParams()
Create and set the parameters applied to incoming request connections |
edu.emory.mathcs.backport.java.util.concurrent.ExecutorService |
newRequestExecutor(int port)
Create the executor use the manage request processing threads |
WorkerFactory |
newRequestWorkerFactory()
Create the factory for request workers |
org.apache.http.HttpResponseFactory |
newResponseFactory()
|
void |
setHostAddress(java.lang.String hostAddress)
Setter for hostAddress |
void |
setOriginServer(java.lang.String originServer)
Setter for originServer |
void |
setPort(int port)
Setter for port |
void |
setRequestCoreThreadPoolSize(int requestCoreThreadPoolSize)
Setter for RequestCoreThreadPoolSize |
void |
setRequestMaxThreadPoolSize(int requestMaxThreadPoolSize)
Setter for requestMaxThreadPoolSize |
void |
setRequestSocketTimeout(int requestSocketTimeout)
Setter for requestSocketTimeout |
void |
setRequestTcpNoDelay(boolean requestTcpNoDelay)
Setter for requestTcpNoDelay |
void |
setThreadKeepAliveTime(long threadKeepAliveTime)
Setter for threadKeepAliveTime |
void |
setThreadKeepAliveTimeUnit(edu.emory.mathcs.backport.java.util.concurrent.TimeUnit threadKeepAliveTimeUnit)
Setter for threadKeepAliveTimeUnit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAMETER_PORT
public static final java.lang.String PARAMETER_HOST_ADDRESS
public static final java.lang.String PARAMETER_ORIGIN_SERVER
public static final java.lang.String PARAMETER_REQUEST_SOCKET_TIMEOUT
public static final java.lang.String PARAMETER_REQUEST_TCP_NO_DELAY
public static final java.lang.String PARAMETER_REQUEST_CORE_THREAD_POOL_SIZE
public static final java.lang.String PARAMETER_REQUEST_MAX_THREAD_POOL_SIZE
public static final java.lang.String PARAMETER_THREAD_KEEP_ALIVE_TIME
public static final java.lang.String PARAMETER_THREAD_KEEP_ALIVE_TIME_UNIT
Constructor Detail |
---|
public HttpFactory(ConfigurationContext configurationContext) throws AxisFault
AxisFault
public HttpFactory(ConfigurationContext configurationContext, int port) throws AxisFault
AxisFault
public HttpFactory(ConfigurationContext configurationContext, int port, WorkerFactory requestWorkerFactory) throws AxisFault
AxisFault
Method Detail |
---|
public ListenerManager getListenerManager()
public edu.emory.mathcs.backport.java.util.concurrent.ExecutorService newListenerExecutor(int port)
public IOProcessor newRequestConnectionListener(int port, HttpConnectionManager manager, org.apache.http.params.HttpParams params) throws java.io.IOException
java.io.IOException
public org.apache.http.params.HttpParams newRequestConnectionParams()
public HttpConnectionManager newRequestConnectionManager(edu.emory.mathcs.backport.java.util.concurrent.ExecutorService requestExecutor, WorkerFactory workerFactory, org.apache.http.params.HttpParams params)
public edu.emory.mathcs.backport.java.util.concurrent.ExecutorService newRequestExecutor(int port)
public edu.emory.mathcs.backport.java.util.concurrent.BlockingQueue newRequestBlockingQueue()
public WorkerFactory newRequestWorkerFactory()
public org.apache.http.protocol.HttpProcessor newHttpProcessor()
public org.apache.http.ConnectionReuseStrategy newConnStrategy()
public org.apache.http.HttpResponseFactory newResponseFactory()
public ConfigurationContext getConfigurationContext()
public TransportInDescription getHttpConfiguration()
public int getPort()
public void setPort(int port)
public java.lang.String getHostAddress()
public void setHostAddress(java.lang.String hostAddress)
public java.lang.String getOriginServer()
public void setOriginServer(java.lang.String originServer)
public int getRequestSocketTimeout()
public void setRequestSocketTimeout(int requestSocketTimeout)
public boolean getRequestTcpNoDelay()
public void setRequestTcpNoDelay(boolean requestTcpNoDelay)
public int getRequestCoreThreadPoolSize()
public void setRequestCoreThreadPoolSize(int requestCoreThreadPoolSize)
public int getRequestMaxThreadPoolSize()
public void setRequestMaxThreadPoolSize(int requestMaxThreadPoolSize)
public long getThreadKeepAliveTime()
public void setThreadKeepAliveTime(long threadKeepAliveTime)
public edu.emory.mathcs.backport.java.util.concurrent.TimeUnit getThreadKeepAliveTimeUnit()
public void setThreadKeepAliveTimeUnit(edu.emory.mathcs.backport.java.util.concurrent.TimeUnit threadKeepAliveTimeUnit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |