public class H2TestServer extends AsyncServer
| Constructor and Description |
|---|
H2TestServer() |
H2TestServer(IOReactorConfig ioReactorConfig,
SSLContext sslContext,
SSLSessionInitializer sslSessionInitializer,
SSLSessionVerifier sslSessionVerifier) |
getEndpoints, listenpublic H2TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOExceptionpublic H2TestServer()
throws IOException
IOExceptionpublic void register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)
public <T> void register(String uriPattern, AsyncServerRequestHandler<T> requestHandler)
public void configure(H2Config h2Config)
public void configure(Http1Config http1Config)
public void configure(HttpProcessor httpProcessor)
public void configure(Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator)
public void start(IOEventHandlerFactory handlerFactory) throws IOException
IOException@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception
configure(Http1Config), configure(HttpProcessor), configure(Decorator), start().Exception@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) throws Exception
configure(H2Config), configure(HttpProcessor), configure(Decorator), start().Exception@Deprecated public InetSocketAddress start(HttpProcessor httpProcessor, Http1Config http1Config) throws Exception
configure(Http1Config), configure(HttpProcessor), start().Exception@Deprecated public InetSocketAddress start(H2Config h2Config) throws Exception
configure(H2Config), start().Exception@Deprecated public InetSocketAddress start(Http1Config http1Config) throws Exception
configure(Http1Config), start().Exceptionpublic InetSocketAddress start() throws Exception
Exceptionprotected void execute(IOEventHandlerFactory ioEventHandlerFactory) throws IOException
IOExceptionpublic IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedExceptionpublic void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.