Package org.apache.hc.core5.testing.nio
Class H2TestServer
java.lang.Object
org.apache.hc.core5.testing.nio.AsyncServer
org.apache.hc.core5.testing.nio.H2TestServer
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionH2TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(TimeValue waitTime) voidclose()protected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidregister(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier) <T> voidregister(String uriPattern, AsyncServerRequestHandler<T> requestHandler) voidstart()start(Http1Config http1Config) start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) voidstart(IOEventHandlerFactory handlerFactory) Methods inherited from class org.apache.hc.core5.testing.nio.AsyncServer
getEndpoints, listen
-
Constructor Details
-
H2TestServer
public H2TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException - Throws:
IOException
-
H2TestServer
- Throws:
IOException
-
-
Method Details
-
register
-
register
-
start
- Throws:
IOException
-
start
public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) throws Exception - Throws:
Exception
-
start
public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception - Throws:
Exception
-
start
- Throws:
Exception
-
start
- Throws:
Exception
-
start
- Throws:
Exception
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-