Package | Description |
---|---|
org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
Modifier and Type | Method and Description |
---|---|
ServerBootstrap |
ServerBootstrap.addFilterAfter(String existing,
String name,
HttpFilterHandler filterHandler)
Adds the filter after the filter with the given name.
|
ServerBootstrap |
ServerBootstrap.addFilterBefore(String existing,
String name,
HttpFilterHandler filterHandler)
Adds the filter before the filter with the given name.
|
ServerBootstrap |
ServerBootstrap.addFilterFirst(String name,
HttpFilterHandler filterHandler)
Add an filter to the head of the processing list.
|
ServerBootstrap |
ServerBootstrap.addFilterLast(String name,
HttpFilterHandler filterHandler)
Add an filter to the tail of the processing list.
|
static ServerBootstrap |
ServerBootstrap.bootstrap() |
ServerBootstrap |
ServerBootstrap.register(String uriPattern,
HttpRequestHandler requestHandler)
Registers the given
HttpRequestHandler as a default handler for URIs
matching the given pattern. |
ServerBootstrap |
ServerBootstrap.register(String hostname,
String uriPattern,
HttpRequestHandler requestHandler)
Registers the given
HttpRequestHandler as a handler for URIs
matching the given host and the pattern. |
ServerBootstrap |
ServerBootstrap.registerVirtual(String hostname,
String uriPattern,
HttpRequestHandler requestHandler)
Deprecated.
|
ServerBootstrap |
ServerBootstrap.replaceFilter(String existing,
HttpFilterHandler filterHandler)
Replace an existing filter with the given name with new filter.
|
ServerBootstrap |
ServerBootstrap.setCanonicalHostName(String canonicalHostName)
Sets canonical name (fully qualified domain name) of the server.
|
ServerBootstrap |
ServerBootstrap.setCharCodingConfig(CharCodingConfig charCodingConfig)
Sets connection configuration.
|
ServerBootstrap |
ServerBootstrap.setConnectionFactory(HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory)
Sets
HttpConnectionFactory instance. |
ServerBootstrap |
ServerBootstrap.setConnectionReuseStrategy(ConnectionReuseStrategy connStrategy)
Sets
ConnectionReuseStrategy instance. |
ServerBootstrap |
ServerBootstrap.setExceptionListener(ExceptionListener exceptionListener)
Sets
ExceptionListener instance. |
ServerBootstrap |
ServerBootstrap.setHttp1Config(Http1Config http1Config)
Sets HTTP/1 protocol configuration.
|
ServerBootstrap |
ServerBootstrap.setHttpProcessor(HttpProcessor httpProcessor)
Sets
HttpProcessor instance. |
ServerBootstrap |
ServerBootstrap.setListenerPort(int listenerPort)
Sets listener port number.
|
ServerBootstrap |
ServerBootstrap.setLocalAddress(InetAddress localAddress)
Sets local interface for the listener.
|
ServerBootstrap |
ServerBootstrap.setLookupRegistry(LookupRegistry<HttpRequestHandler> lookupRegistry)
Deprecated.
Use
RequestRouter . |
ServerBootstrap |
ServerBootstrap.setRequestRouter(HttpRequestMapper<HttpRequestHandler> requestRouter)
Sets
HttpRequestMapper instance. |
ServerBootstrap |
ServerBootstrap.setResponseFactory(HttpResponseFactory<ClassicHttpResponse> responseFactory)
Sets
HttpResponseFactory instance. |
ServerBootstrap |
ServerBootstrap.setServerSocketFactory(ServerSocketFactory serverSocketFactory)
Sets
ServerSocketFactory instance. |
ServerBootstrap |
ServerBootstrap.setSocketConfig(SocketConfig socketConfig)
Sets socket configuration.
|
ServerBootstrap |
ServerBootstrap.setSslContext(SSLContext sslContext)
Sets
SSLContext instance. |
ServerBootstrap |
ServerBootstrap.setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)
Sets
Callback for SSLParameters . |
ServerBootstrap |
ServerBootstrap.setStreamListener(Http1StreamListener streamListener)
Sets
ExceptionListener instance. |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.