public class Http1TestServer extends AsyncServer
Constructor and Description |
---|
Http1TestServer() |
Http1TestServer(IOReactorConfig ioReactorConfig,
SSLContext sslContext,
SSLSessionInitializer sslSessionInitializer,
SSLSessionVerifier sslSessionVerifier) |
getEndpoints, listen
public Http1TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOException
public Http1TestServer() throws IOException
IOException
public void register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)
public <T> void register(String uriPattern, AsyncServerRequestHandler<T> requestHandler)
public void configure(Http1Config http1Config)
public void configure(HttpProcessor httpProcessor)
public void configure(Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator)
@Internal public void configure(NHttpMessageParserFactory<HttpRequest> requestParserFactory)
@Internal public void configure(NHttpMessageWriterFactory<HttpResponse> responseWriterFactory)
public InetSocketAddress start(IOEventHandlerFactory handlerFactory) throws Exception
Exception
@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, Http1Config http1Config) throws Exception
configure(Http1Config)
, configure(HttpProcessor)
, start()
.Exception
public InetSocketAddress start() throws Exception
Exception
protected void execute(IOEventHandlerFactory ioEventHandlerFactory) throws IOException
IOException
public IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedException
public void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.