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 SocketConfig
private final SSLContext
-
Constructor Summary
ConstructorsConstructorDescriptionClassicTestServer
(SSLContext sslContext, SocketConfig socketConfig) ClassicTestServer
(SocketConfig socketConfig) -
Method Summary
Modifier and TypeMethodDescriptionint
getPort()
void
registerHandler
(String pattern, HttpRequestHandler handler) void
registerHandlerVirtual
(String hostname, String pattern, HttpRequestHandler handler) void
void
start()
void
start
(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
-