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.jjneko.jjnet.networking.http.server.WebSocketHttpServerHandler.java

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

    private static final String WEBSOCKET_PATH = "/websocket";

From source file com.jjzhk.Chapter10.xml.HttpXmlClientHandle.java

public class HttpXmlClientHandle extends SimpleChannelInboundHandler<HttpXmlResponse> {

    @Override
    public void channelActive(ChannelHandlerContext ctx) {
        HttpXmlRequest request = new HttpXmlRequest(null, OrderFactory.create(123));
        ctx.writeAndFlush(request);

From source file com.jjzhk.Chapter10.xml.HttpXmlServerHandler.java

public class HttpXmlServerHandler extends SimpleChannelInboundHandler<HttpXmlRequest> {

    @Override
    public void messageReceived(final ChannelHandlerContext ctx, HttpXmlRequest xmlRequest) throws Exception {
        HttpRequest request = xmlRequest.getRequest();
        Order order = (Order) xmlRequest.getBody();

From source file com.jjzhk.Chapter11.websocket.WebSocketServerHandler.java

/**
 * @author lilinfeng
 * @date 20142?14?
 * @version 1.0
 */
public class WebSocketServerHandler extends SimpleChannelInboundHandler<Object> {

From source file com.jjzhk.Chapter12.udp.ChineseProverbClientHandler.java

/**
 * @author lilinfeng
 * @date 20142?14?
 * @version 1.0
 */
public class ChineseProverbClientHandler extends SimpleChannelInboundHandler<DatagramPacket> {

From source file com.jjzhk.Chapter12.udp.ChineseProverbServerHandler.java

/**
 * @author lilinfeng
 * @date 20142?14?
 * @version 1.0
 */
public class ChineseProverbServerHandler extends SimpleChannelInboundHandler<DatagramPacket> {

From source file com.jjzhk.Chapter13.file.FileServerHandler.java

/**
 * @author Administrator
 * @date 20143?9?
 * @version 1.0
 */
public class FileServerHandler extends SimpleChannelInboundHandler<String> {

From source file com.joey.handler.MessageHandler.java

/**
 * Handles a server-side channel.
 */
public class MessageHandler extends SimpleChannelInboundHandler<Object> {

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

From source file com.jt.flash.proxy.handler.HttpHealthCheckHandler.java

public class HttpHealthCheckHandler extends SimpleChannelInboundHandler<HttpObject> {
    private static final Logger log = LoggerFactory.getLogger(HttpHealthCheckHandler.class);
    private UpstreamNode upstreamNode;

    public HttpHealthCheckHandler(UpstreamNode upstreamNode) {
        this.upstreamNode = upstreamNode;

From source file com.just.server.http.file.HttpStaticFileServerHandler.java

public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler<FullHttpRequest> {

    public static final String HTTP_DATE_FORMAT = "EEE, dd MMM yyyy HH:mm:ss zzz";
    public static final String HTTP_DATE_GMT_TIMEZONE = "GMT";
    public static final int HTTP_CACHE_SECONDS = 60;