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

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

Introduction

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

Usage

From source file com.eucalyptus.ws.handlers.IoInternalHmacHandler.java

/**
 * Outbound hmac signature v4 for internal use.
 *
 * If we switch to netty 4.x for inbound then this could extend HmacHandler /
 * IoHmacHandler and also cover inbound.
 */

From source file com.fjn.helper.frameworkex.netty.v4.timetest.TimeEncoder.java

public class TimeEncoder extends ChannelOutboundHandlerAdapter {
    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) {
        UnixTime m = (UnixTime) msg;
        ByteBuf encoded = ctx.alloc().buffer(4);
        encoded.writeInt((int) m.value());

From source file com.flysoloing.learning.network.netty.spdy.client.SpdyClientStreamIdHandler.java

/**
 * Adds a unique client stream ID to the SPDY header. Client stream IDs MUST be odd.
 */
public class SpdyClientStreamIdHandler extends ChannelOutboundHandlerAdapter {

    private int currentStreamId = 1;

From source file com.github.ambry.rest.NettyResponseChannelTest.java

/**
 * A {@link ChannelOutboundHandler} that throws exceptions on write.
 */
class ExceptionOutboundHandler extends ChannelOutboundHandlerAdapter {
    protected static String EXCEPTION_MESSAGE = "@@randomExceptionMessage@@";

From source file com.github.jrialland.ajpclient.impl.handlers.OutgoingFramesLogger.java

/**
 * for debug purposes, logs in hexadecimal all the frames that we emit.
 *
 * @author Julien Rialland <julien.rialland@gmail.com>
 *
 */

From source file com.github.nettybook.ch4.EchoClientHandler1.java

/**
 * Handler implementation for the echo client. It initiates the ping-pong
 * traffic between the echo client and server by sending the first message to
 * the server.
 */
public class EchoClientHandler1 extends ChannelOutboundHandlerAdapter {

From source file com.hop.hhxx.example.spdy.client.SpdyClientStreamIdHandler.java

/**
 * Adds a unique client stream ID to the SPDY header. Client stream IDs MUST be odd.
 */
public class SpdyClientStreamIdHandler extends ChannelOutboundHandlerAdapter {

    private int currentStreamId = 1;

From source file com.king.platform.net.http.netty.SslInitializer.java

public class SslInitializer extends ChannelOutboundHandlerAdapter {
    private final SSLFactory sslFactory;
    public static final String NAME = "SslHandler";
    private final long handshakeTimeout;

    public SslInitializer(SSLFactory sslFactory, long handshakeTimeout) {

From source file com.linecorp.armeria.internal.ReadSuppressingHandler.java

@Sharable
public final class ReadSuppressingHandler extends ChannelOutboundHandlerAdapter {

    public static final ReadSuppressingHandler INSTANCE = new ReadSuppressingHandler();

    private ReadSuppressingHandler() {

From source file com.linkedin.r2.transport.http.client.Http2InitializerHandler.java

/**
 * Initializes the pipeline upon receiving the first request to #write. Based on the HTTP scheme of
 * the first request, a pipeline setup is selected.
 *
 * If the selected scheme is HTTP, HTTP/2 over TCP through protocol upgrade (h2c) pipeline is setup.
 * Else HTTP/2 over TLS through ALPN (h2) pipeline is setup.