Example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage

List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage

Introduction

In this page you can find the example usage for io.netty.channel SimpleChannelInboundHandler subclass-usage.

Usage

From source file com.hop.hhxx.example.http.upload.HttpUploadServerHandler.java

public class HttpUploadServerHandler extends SimpleChannelInboundHandler<HttpObject> {

    private static final Logger logger = Logger.getLogger(HttpUploadServerHandler.class.getName());

    private HttpRequest request;

From source file com.hop.hhxx.example.http.websocketx.benchmarkserver.WebSocketServerHandler.java

/**
 * Handles handshakes and messages
 */
public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object> {

    private static final String WEBSOCKET_PATH = "/websocket";

From source file com.hop.hhxx.example.http.websocketx.client.WebSocketClientHandler.java

public class WebSocketClientHandler extends SimpleChannelInboundHandler<Object> {

    private final WebSocketClientHandshaker handshaker;
    private ChannelPromise handshakeFuture;

    public WebSocketClientHandler(WebSocketClientHandshaker handshaker) {

From source file com.hop.hhxx.example.http.websocketx.server.WebSocketFrameHandler.java

/**
 * Echoes uppercase content of text frames.
 */
public class WebSocketFrameHandler extends SimpleChannelInboundHandler<WebSocketFrame> {

    private static final Logger logger = LoggerFactory.getLogger(WebSocketFrameHandler.class);

From source file com.hop.hhxx.example.http.websocketx.server.WebSocketIndexPageHandler.java

/**
 * Outputs index page content.
 */
public class WebSocketIndexPageHandler extends SimpleChannelInboundHandler<FullHttpRequest> {

    private final String websocketPath;

From source file com.hop.hhxx.example.http2.helloworld.client.Http2SettingsHandler.java

/**
 * Reads the first {@link Http2Settings} object and notifies a {@link ChannelPromise}
 */
public class Http2SettingsHandler extends SimpleChannelInboundHandler<Http2Settings> {
    private ChannelPromise promise;

From source file com.hop.hhxx.example.http2.helloworld.client.HttpResponseHandler.java

/**
 * Process {@link FullHttpResponse} translated from HTTP/2 frames
 */
public class HttpResponseHandler extends SimpleChannelInboundHandler<FullHttpResponse> {

    private SortedMap<Integer, Entry<ChannelFuture, ChannelPromise>> streamidPromiseMap;

From source file com.hop.hhxx.example.http2.helloworld.server.HelloWorldHttp1Handler.java

/**
 * HTTP handler that responds with a "Hello World"
 */
public class HelloWorldHttp1Handler extends SimpleChannelInboundHandler<FullHttpRequest> {
    private final String establishApproach;

From source file com.hop.hhxx.example.http2.tiles.FallbackRequestHandler.java

/**
 * Handles the exceptional case where HTTP 1.x was negotiated under TLS.
 */
public final class FallbackRequestHandler extends SimpleChannelInboundHandler<HttpRequest> {

    private static final ByteBuf response = unreleasableBuffer(copiedBuffer(

From source file com.hop.hhxx.example.http2.tiles.Http2RequestHandler.java

/**
 * Handles all the requests for data. It receives a {@link FullHttpRequest},
 * which has been converted by a {@link InboundHttp2ToHttpAdapter} before it
 * arrived here. For further details, check {@link io.netty.example.http2.tiles.Http2OrHttpHandler} where the
 * pipeline is setup.
 */