Package | Description |
---|---|
org.apache.http.impl.bootstrap |
Embedded server and server bootstrap.
|
Modifier and Type | Method and Description |
---|---|
ServerBootstrap |
ServerBootstrap.addInterceptorFirst(HttpRequestInterceptor itcp)
Adds this protocol interceptor to the head of the protocol processing list.
|
ServerBootstrap |
ServerBootstrap.addInterceptorFirst(HttpResponseInterceptor itcp)
Adds this protocol interceptor to the head of the protocol processing list.
|
ServerBootstrap |
ServerBootstrap.addInterceptorLast(HttpRequestInterceptor itcp)
Adds this protocol interceptor to the tail of the protocol processing list.
|
ServerBootstrap |
ServerBootstrap.addInterceptorLast(HttpResponseInterceptor itcp)
Adds this protocol interceptor to the tail of the protocol processing list.
|
static ServerBootstrap |
ServerBootstrap.bootstrap() |
ServerBootstrap |
ServerBootstrap.registerHandler(java.lang.String pattern,
HttpRequestHandler handler)
Registers the given
HttpRequestHandler as a handler for URIs
matching the given pattern. |
ServerBootstrap |
ServerBootstrap.setConnectionConfig(ConnectionConfig connectionConfig)
Sets connection configuration.
|
ServerBootstrap |
ServerBootstrap.setConnectionFactory(HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory)
Assigns
HttpConnectionFactory instance. |
ServerBootstrap |
ServerBootstrap.setConnectionReuseStrategy(ConnectionReuseStrategy connStrategy)
Assigns
ConnectionReuseStrategy instance. |
ServerBootstrap |
ServerBootstrap.setExceptionLogger(ExceptionLogger exceptionLogger)
Assigns
ExceptionLogger instance. |
ServerBootstrap |
ServerBootstrap.setExpectationVerifier(HttpExpectationVerifier expectationVerifier)
Assigns
HttpExpectationVerifier instance. |
ServerBootstrap |
ServerBootstrap.setHandlerMapper(HttpRequestHandlerMapper handlerMapper)
Assigns
HttpRequestHandlerMapper instance. |
ServerBootstrap |
ServerBootstrap.setHttpProcessor(HttpProcessor httpProcessor)
Assigns
HttpProcessor instance. |
ServerBootstrap |
ServerBootstrap.setListenerPort(int listenerPort)
Sets listener port number.
|
ServerBootstrap |
ServerBootstrap.setLocalAddress(java.net.InetAddress localAddress)
Assigns local interface for the listener.
|
ServerBootstrap |
ServerBootstrap.setResponseFactory(HttpResponseFactory responseFactory)
Assigns
HttpResponseFactory instance. |
ServerBootstrap |
ServerBootstrap.setServerInfo(java.lang.String serverInfo)
Assigns
Server response header value. |
ServerBootstrap |
ServerBootstrap.setServerSocketFactory(javax.net.ServerSocketFactory serverSocketFactory)
Assigns
ServerSocketFactory instance. |
ServerBootstrap |
ServerBootstrap.setSocketConfig(SocketConfig socketConfig)
Sets socket configuration.
|
ServerBootstrap |
ServerBootstrap.setSslContext(javax.net.ssl.SSLContext sslContext)
Assigns
SSLContext instance. |
ServerBootstrap |
ServerBootstrap.setSslSetupHandler(SSLServerSetupHandler sslSetupHandler)
Assigns
SSLServerSetupHandler instance. |