public class Http1TestServer extends AsyncServer
| Constructor and Description |
|---|
Http1TestServer() |
Http1TestServer(IOReactorConfig ioReactorConfig,
SSLContext sslContext,
SSLSessionInitializer sslSessionInitializer,
SSLSessionVerifier sslSessionVerifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitShutdown(TimeValue waitTime) |
void |
close() |
protected void |
execute(IOEventHandlerFactory ioEventHandlerFactory) |
IOReactorStatus |
getStatus() |
void |
initiateShutdown() |
<T> void |
register(String uriPattern,
AsyncServerRequestHandler<T> requestHandler) |
void |
register(String uriPattern,
Supplier<AsyncServerExchangeHandler> supplier) |
void |
shutdown(TimeValue graceTime) |
InetSocketAddress |
start() |
InetSocketAddress |
start(HttpProcessor httpProcessor,
Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator,
Http1Config http1Config) |
InetSocketAddress |
start(HttpProcessor httpProcessor,
Http1Config http1Config) |
InetSocketAddress |
start(IOEventHandlerFactory handlerFactory) |
getEndpoints, listenpublic Http1TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOExceptionpublic Http1TestServer()
throws IOException
IOExceptionpublic void register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)
public <T> void register(String uriPattern, AsyncServerRequestHandler<T> requestHandler)
public InetSocketAddress start(IOEventHandlerFactory handlerFactory) throws Exception
Exceptionpublic InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception
Exceptionpublic InetSocketAddress start(HttpProcessor httpProcessor, Http1Config http1Config) throws Exception
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–2022 The Apache Software Foundation. All rights reserved.