public class H2TestServer extends AsyncServer
Constructor and Description |
---|
H2TestServer() |
H2TestServer(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(H2Config h2Config) |
InetSocketAddress |
start(Http1Config http1Config) |
InetSocketAddress |
start(HttpProcessor httpProcessor,
Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator,
H2Config h2Config) |
InetSocketAddress |
start(HttpProcessor httpProcessor,
Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator,
Http1Config http1Config) |
void |
start(IOEventHandlerFactory handlerFactory) |
getEndpoints, listen
public H2TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOException
public H2TestServer() throws IOException
IOException
public void register(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier)
public <T> void register(String uriPattern, AsyncServerRequestHandler<T> requestHandler)
public void start(IOEventHandlerFactory handlerFactory) throws IOException
IOException
public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, H2Config h2Config) throws Exception
Exception
public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception
Exception
public InetSocketAddress start(H2Config h2Config) throws Exception
Exception
public InetSocketAddress start(Http1Config http1Config) throws Exception
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–2022 The Apache Software Foundation. All rights reserved.