Class ClassicTestServer
java.lang.Object
org.apache.hc.core5.testing.classic.ClassicTestServer
-
Constructor Summary
ConstructorsConstructorDescriptionClassicTestServer(SSLContext sslContext, org.apache.hc.core5.http.io.SocketConfig socketConfig) ClassicTestServer(org.apache.hc.core5.http.io.SocketConfig socketConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.http.io.HttpServerRequestHandler> handlerDecorator) voidconfigure(org.apache.hc.core5.http.config.Http1Config http1Config) voidconfigure(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor) intgetPort()voidregister(String hostname, String uriPattern, org.apache.hc.core5.http.io.HttpRequestHandler handler) voidvoidregisterHandler(String pattern, org.apache.hc.core5.http.io.HttpRequestHandler handler) Deprecated.voidregisterHandlerVirtual(String hostname, String pattern, org.apache.hc.core5.http.io.HttpRequestHandler handler) Deprecated.voidshutdown(org.apache.hc.core5.io.CloseMode closeMode) voidstart()voidstart(org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.function.Decorator<org.apache.hc.core5.http.io.HttpServerRequestHandler> handlerDecorator) Deprecated.
-
Constructor Details
-
ClassicTestServer
public ClassicTestServer(SSLContext sslContext, org.apache.hc.core5.http.io.SocketConfig socketConfig) -
ClassicTestServer
public ClassicTestServer(org.apache.hc.core5.http.io.SocketConfig socketConfig) -
ClassicTestServer
public ClassicTestServer()
-
-
Method Details
-
registerHandler
@Deprecated public void registerHandler(String pattern, org.apache.hc.core5.http.io.HttpRequestHandler handler) Deprecated. -
registerHandlerVirtual
@Deprecated public void registerHandlerVirtual(String hostname, String pattern, org.apache.hc.core5.http.io.HttpRequestHandler handler) Deprecated. -
register
- Since:
- 5.3
-
register
-
configure
public void configure(org.apache.hc.core5.http.config.Http1Config http1Config) - Since:
- 5.3
-
configure
public void configure(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor) - Since:
- 5.3
-
configure
public void configure(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.http.io.HttpServerRequestHandler> handlerDecorator) - Since:
- 5.3
-
getPort
public int getPort() -
getInetAddress
-
start
@Deprecated public void start(org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.function.Decorator<org.apache.hc.core5.http.io.HttpServerRequestHandler> handlerDecorator) throws IOException Deprecated.- Throws:
IOException
-
start
- Throws:
IOException
-
shutdown
public void shutdown(org.apache.hc.core5.io.CloseMode closeMode)
-
register(String, HttpRequestHandler).