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

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

Introduction

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

Usage

From source file org.apache.hadoop.hbase.ipc.NettyRpcDuplexHandler.java

/**
 * The netty rpc handler.
 */
@InterfaceAudience.Private
class NettyRpcDuplexHandler extends ChannelDuplexHandler {

From source file org.apache.hadoop.hbase.security.SaslClientHandler.java

/**
 * Handles Sasl connections
 */
@InterfaceAudience.Private
public class SaslClientHandler extends ChannelDuplexHandler {
    public static final Log LOG = LogFactory.getLog(SaslClientHandler.class);

From source file org.apache.hyracks.http.server.CLFLogger.java

public class CLFLogger extends ChannelDuplexHandler {

    private static final Logger accessLogger = LogManager.getLogger();
    private static final Level ACCESS_LOG_LEVEL = Level.forName("ACCESS", 550);
    private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter
            .ofPattern("dd/MMM/yyyy:HH:mm:ss Z").withZone(ZoneId.systemDefault());

From source file org.apache.tajo.ws.rs.netty.NettyRestHandlerContainer.java

/**
 * Jersy Container implementation on Netty
 */
@Sharable
public class NettyRestHandlerContainer extends ChannelDuplexHandler implements Container {

From source file org.ballerinalang.test.util.websocket.server.WebSocketHeadersHandler.java

/**
 * Simple Handler for testing the support for custom headers by WebSocket client and server.
 * The class is a {@link ChannelDuplexHandler} and returns the request headers for the request and sets a new header
 * to the response.
 */
public class WebSocketHeadersHandler extends ChannelDuplexHandler {

From source file org.code_house.ebus.netty.codec.OutboundEBusHandler.java

/**
 * Outbound handler which controls writing to bus.
 *
 * Because bus access is not random it requires arbitration. This means that before writing any telegram to bus we must
 * be sure that there is no other participant trying to do the same. For that reason we must write own master address
 * and read it back. If we read same byte as we wrote this means access to bus is granted.

From source file org.dcache.http.KeepAliveHandler.java

/**
 * Add the HTTP KeepAlive related response header when appropriate and
 * ensure the connection is terminated once advertised.
 * <p>
 * See Section 8 of RFC-2616 for more details.
 */

From source file org.dcache.xrootd.plugins.AccessLogHandler.java

@ChannelHandler.Sharable
public class AccessLogHandler extends ChannelDuplexHandler {
    protected final Logger logger;

    public AccessLogHandler(Logger logger) {
        this.logger = logger;

From source file org.dcache.xrootd.stream.ChunkedResponseWriteHandler.java

/**
 * A {@link io.netty.channel.ChannelHandler} that adds support for writing chunked xrootd replies.
 *
 * Loosely based on io.netty.handler.stream.ChunkedWriteHandler, but specialized for xrootd.
 * Xrootd allows replies to be delivered out of order, which means that unchunked responses do not
 * have to be queued and can be passed downstream right away.

From source file org.diorite.impl.connection.ByteToMessageCodec.java

/**
 * Diorite edited copy of {@link io.netty.handler.codec.ByteToMessageCodec}
 * <br>
 * A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.
 * <br>
 * This can be thought of as a combination of {@link ByteToMessageDecoder} and {@link MessageToByteEncoder}.