| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private static final Handler | |
| pack-priv static final boolean | |
| private static final String | |
| private Handler | |
| private static final String | |
| private Handler | |
| pack-priv static final Logger | |
| pack-priv final HttpServerOptions | |
| private final HttpServerImpl. | |
| pack-priv static final boolean | |
| pack-priv final boolean | |
| private Handler | |
| private final HttpServerImpl. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected BiConsumer | childHandler(ContextInternal context, SocketAddress address, GlobalTrafficShapingHandler trafficShapingHandler)
Implements abstract io.
|
| public Future | close()
Implements abstract io. Implements io. Close the server. |
| public void | close(Handler<AsyncResult<Void>>
the handler done)Implements io. Like |
| public synchronized void | close(Promise<Void>
the promise to signal when close has completed completion)Overrides io. Implements io. Close this resource, the |
| public synchronized HttpServer | connectionHandler(Handler<HttpConnection> handler)
Implements io. Set a connection handler for the server. |
| protected TCPMetrics | createMetrics(SocketAddress localAddress)
Overrides io.
|
| protected SSLHelper | |
| public synchronized HttpServer | exceptionHandler(Handler<Throwable>
the handler to set handler)Implements io. Set an exception handler called for socket errors happening before the HTTP connection is established, e.g during the TLS handshake. |
| public HttpServer | invalidRequestHandler(Handler<HttpServerRequest> handler)
Implements io. Set a |
| public boolean | |
| public Future | |
| public synchronized Future | listen(SocketAddress address)
Implements io. Like |
| pack-priv boolean | |
| public synchronized HttpServer | requestHandler(Handler<HttpServerRequest> handler)
Implements io. Set the request handler for the server to |
| public Handler | |
| public ReadStream | requestStream()
Implements io. Return the request stream for the server. |
| public HttpServer | webSocketHandler(Handler<ServerWebSocket> handler)
Implements io. Set the WebSocket handler for the server to |
| public Handler | |
| public HttpServer | webSocketHandshakeHandler(Handler<ServerWebSocketHandshake> handler)
Implements io. Set a handler for WebSocket handshake. |
| public ReadStream | webSocketStream()
Implements io. Return the WebSocket stream for the server. |
| pack-priv boolean |
| connectionHandler | back to summary |
|---|---|
| private Handler<HttpConnection> connectionHandler | |
| DEFAULT_EXCEPTION_HANDLER | back to summary |
|---|---|
| private static final Handler<Throwable> DEFAULT_EXCEPTION_HANDLER | |
| DISABLE_WEBSOCKETS | back to summary |
|---|---|
| pack-priv static final boolean DISABLE_WEBSOCKETS | |
| DISABLE_WEBSOCKETS_PROP_NAME | back to summary |
|---|---|
| private static final String DISABLE_WEBSOCKETS_PROP_NAME | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| FLASH_POLICY_HANDLER_PROP_NAME | back to summary |
|---|---|
| private static final String FLASH_POLICY_HANDLER_PROP_NAME | |
| invalidRequestHandler | back to summary |
|---|---|
| private Handler<HttpServerRequest> invalidRequestHandler | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| options | back to summary |
|---|---|
| pack-priv final HttpServerOptions options | |
| requestStream | back to summary |
|---|---|
| private final HttpServerImpl. | |
| USE_FLASH_POLICY_HANDLER | back to summary |
|---|---|
| pack-priv static final boolean USE_FLASH_POLICY_HANDLER | |
| useH2UniformStreamByteDistributor | back to summary |
|---|---|
| pack-priv final boolean useH2UniformStreamByteDistributor | |
| webSocketHandshakeHandler | back to summary |
|---|---|
| private Handler<ServerWebSocketHandshake> webSocketHandshakeHandler | |
| wsStream | back to summary |
|---|---|
| private final HttpServerImpl. | |
| HttpServerImpl | back to summary |
|---|---|
| public HttpServerImpl(VertxInternal vertx, HttpServerOptions options) | |
| childHandler | back to summary |
|---|---|
| protected BiConsumer Implements abstract io.
| |
| close | back to summary |
|---|---|
| public Future Implements abstract io. Implements io. Doc from io. Close the server. Any open HTTP connections will be closed. The close happens asynchronously and the server may not be closed until some time after the call has returned. | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> done) Implements io. Doc from io. Like
| |
| close | back to summary |
|---|---|
| public synchronized void close(Promise<Void> completion) Overrides io. Implements io. Doc from io. Close this resource, the | |
| connectionHandler | back to summary |
|---|---|
| public synchronized HttpServer connectionHandler(Handler<HttpConnection> handler) Implements io. Doc from io. Set a connection handler for the server.
| |
| createMetrics | back to summary |
|---|---|
| protected TCPMetrics Overrides io.
| |
| createSSLHelper | back to summary |
|---|---|
| protected SSLHelper createSSLHelper() Overrides io.
| |
| exceptionHandler | back to summary |
|---|---|
| public synchronized HttpServer exceptionHandler(Handler<Throwable> handler) Implements io. Doc from io. Set an exception handler called for socket errors happening before the HTTP connection is established, e.g during the TLS handshake.
| |
| invalidRequestHandler | back to summary |
|---|---|
| public HttpServer invalidRequestHandler(Handler<HttpServerRequest> handler) Implements io. Doc from io. Set a Currently this handler is only used for HTTP/1.x requests. When no specific handler is set, the
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| listen | back to summary |
|---|---|
| public Future Implements io. Doc from io. Tell the server to start listening. The server will listen on the port and host specified in the
The listen happens asynchronously and the server may not be listening until some time after the call has returned.
| |
| listen | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Like
| |
| requestAccept | back to summary |
|---|---|
| pack-priv boolean requestAccept() | |
| requestHandler | back to summary |
|---|---|
| public synchronized HttpServer requestHandler(Handler<HttpServerRequest> handler) Implements io. Doc from io. Set the request handler for the server to
| |
| requestHandler | back to summary |
|---|---|
| public Handler Implements io.
| |
| requestStream | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Return the request stream for the server. As HTTP requests are received by the server,
instances of
| |
| webSocketHandler | back to summary |
|---|---|
| public HttpServer webSocketHandler(Handler<ServerWebSocket> handler) Implements io. Doc from io. Set the WebSocket handler for the server to
| |
| webSocketHandler | back to summary |
|---|---|
| public Handler Implements io.
| |
| webSocketHandshakeHandler | back to summary |
|---|---|
| public HttpServer webSocketHandshakeHandler(Handler<ServerWebSocketHandshake> handler) Implements io. Doc from io. Set a handler for WebSocket handshake. When an inbound HTTP request presents a WebSocket upgrade, this handler is called first. The handler
can chose to Setting no handler, implicitly accepts any HTTP request connection presenting an upgrade header and upgrades it to a WebSocket.
| |
| webSocketStream | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Return the WebSocket stream for the server. If a WebSocket connect handshake is successful a
new
| |
| wsAccept | back to summary |
|---|---|
| pack-priv boolean wsAccept() | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private Handler | |
| private Handler |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv Handler | |
| public ReadStream | |
| public ReadStream | |
| public ReadStream | fetch(long amount)
Implements io. Fetch the specified |
| pack-priv Handler | |
| public ReadStream | |
| public ReadStream | pause()
Implements io. Pause the |
| public ReadStream | resume()
Implements io. Resume reading, and sets the buffer in |
| demand | back to summary |
|---|---|
| private long demand | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| handler | back to summary |
|---|---|
| private Handler<C> handler | |
| HttpStreamHandler | back to summary |
|---|---|
| pack-priv HttpStreamHandler() | |
| accept | back to summary |
|---|---|
| pack-priv boolean accept() | |
| endHandler | back to summary |
|---|---|
| pack-priv Handler | |
| endHandler | back to summary |
|---|---|
public ReadStream
| |
| exceptionHandler | back to summary |
|---|---|
public ReadStream
| |
| fetch | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Fetch the specified
| |
| handler | back to summary |
|---|---|
| pack-priv Handler | |
| handler | back to summary |
|---|---|
public ReadStream
| |
| pause | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public ReadStream Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |