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.HttpTestServer
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()voidconfigure(Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator) voidconfigure(Http1Config http1Config) voidconfigure(HttpProcessor httpProcessor) voidprotected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidstart()start(Http1Config http1Config) Deprecated.start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) Deprecated.start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) Deprecated.start(HttpProcessor httpProcessor, Http1Config http1Config) Deprecated.Deprecated.Useconfigure(H2Config),start().voidstart(IOEventHandlerFactory handlerFactory) Deprecated.Methods inherited from class org.apache.hc.core5.testing.nio.HttpTestServer
register, register, startExecutionMethods 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
-
configure
- Since:
- 5.3
-
configure
- Since:
- 5.3
-
configure
- Overrides:
configurein classHttpTestServer- Since:
- 5.3
-
configure
- Overrides:
configurein classHttpTestServer- Since:
- 5.3
-
start
Deprecated.- Throws:
IOException
-
start
@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception Deprecated.- Throws:
Exception
-
start
@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) throws Exception Deprecated.- Throws:
Exception
-
start
@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Http1Config http1Config) throws Exception Deprecated.- Throws:
Exception
-
start
Deprecated.Useconfigure(H2Config),start().- Throws:
Exception
-
start
Deprecated.- Throws:
Exception
-
start
- Specified by:
startin classHttpTestServer- Throws:
Exception
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
configure(Http1Config),start().