Top Description Fields Constructors Methods
io.vertx.core.http.impl

public Class HttpServerConnectionHandler

extends Object
implements Handler<HttpServerConnection>
Class Inheritance
All Implemented Interfaces
io.vertx.core.Handler
Imports
io.netty.channel.ChannelPipeline, io.netty.handler.codec.compression.ZlibCodecFactory, io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler, .WebSocketServerExtensionHandshaker, io.netty.handler.codec.http.websocketx.extensions.compression.DeflateFrameServerExtensionHandshaker, .PerMessageDeflateServerExtensionHandshaker, io.vertx.core.Handler, io.vertx.core.http.HttpConnection, .HttpServerRequest, .ServerWebSocket, .ServerWebSocketHandshake, io.vertx.core.impl.ContextInternal, java.util.ArrayList

HTTP server connection handler.
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
pack-priv final Handler<HttpConnection>
pack-priv final Handler<Throwable>
pack-priv final Handler<HttpServerRequest>
pack-priv final Handler<HttpServerRequest>
pack-priv final HttpServerImpl
pack-priv final Handler<ServerWebSocket>
pack-priv final Handler<ServerWebSocketHandshake>

Constructor Summary

AccessConstructor and Description
public
HttpServerConnectionHandler(HttpServerImpl server, Handler<HttpServerRequest> requestHandler, Handler<HttpServerRequest> invalidRequestHandler, Handler<ServerWebSocketHandshake> wsHandshakeHandler, Handler<ServerWebSocket> wsHandler, Handler<HttpConnection> connectionHandler, Handler<Throwable> exceptionHandler)

Method Summary

Modifier and TypeMethod and Description
public void
handle(HttpServerConnection
the event to handle
conn
)

Implements io.vertx.core.Handler.handle.

Something has happened, so handle it.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionHandlerback to summary
pack-priv final Handler<HttpConnection> connectionHandler
exceptionHandlerback to summary
pack-priv final Handler<Throwable> exceptionHandler
invalidRequestHandlerback to summary
pack-priv final Handler<HttpServerRequest> invalidRequestHandler
requestHandlerback to summary
pack-priv final Handler<HttpServerRequest> requestHandler
serverback to summary
pack-priv final HttpServerImpl server
wsHandlerback to summary
pack-priv final Handler<ServerWebSocket> wsHandler
wsHandshakeHandlerback to summary
pack-priv final Handler<ServerWebSocketHandshake> wsHandshakeHandler

Constructor Detail

HttpServerConnectionHandlerback to summary
public HttpServerConnectionHandler(HttpServerImpl server, Handler<HttpServerRequest> requestHandler, Handler<HttpServerRequest> invalidRequestHandler, Handler<ServerWebSocketHandshake> wsHandshakeHandler, Handler<ServerWebSocket> wsHandler, Handler<HttpConnection> connectionHandler, Handler<Throwable> exceptionHandler)

Method Detail

handleback to summary
public void handle(HttpServerConnection conn)

Implements io.vertx.core.Handler.handle.

Doc from io.vertx.core.Handler.handle.

Something has happened, so handle it.

Parameters
conn:HttpServerConnection

the event to handle

Annotations
@Override
initializeWebSocketExtensionsback to summary
private void initializeWebSocketExtensions(ChannelPipeline pipeline)