Class ClassicTestServer
java.lang.Object
org.apache.hc.core5.testing.classic.ClassicTestServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RequestHandlerRegistry<HttpRequestHandler> private final AtomicReference<HttpServer> private final SocketConfigprivate final SSLContext -
Constructor Summary
ConstructorsConstructorDescriptionClassicTestServer(SSLContext sslContext, SocketConfig socketConfig) ClassicTestServer(SocketConfig socketConfig) -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()voidregisterHandler(String pattern, HttpRequestHandler handler) voidregisterHandlerVirtual(String hostname, String pattern, HttpRequestHandler handler) voidvoidstart()voidstart(Http1Config http1Config, HttpProcessor httpProcessor, Decorator<HttpServerRequestHandler> handlerDecorator)
-
Field Details
-
sslContext
-
socketConfig
-
registry
-
serverRef
-
-
Constructor Details
-
ClassicTestServer
-
ClassicTestServer
-
ClassicTestServer
public ClassicTestServer()
-
-
Method Details
-
registerHandler
-
registerHandlerVirtual
-
getPort
public int getPort() -
getInetAddress
-
start
public void start(Http1Config http1Config, HttpProcessor httpProcessor, Decorator<HttpServerRequestHandler> handlerDecorator) throws IOException - Throws:
IOException
-
start
- Throws:
IOException
-
shutdown
-