List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file co.rsk.rpc.netty.Web3HttpMethodFilterHandler.java
public class Web3HttpMethodFilterHandler extends SimpleChannelInboundHandler<FullHttpRequest> { @Override protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest request) { HttpMethod httpMethod = request.getMethod(); if (HttpMethod.POST.equals(httpMethod)) { // retain the request so it isn't released automatically by SimpleChannelInboundHandler
From source file co.rsk.rpc.netty.Web3ResultHttpResponseHandler.java
public class Web3ResultHttpResponseHandler extends SimpleChannelInboundHandler<Web3Result> { @Override protected void channelRead0(ChannelHandlerContext ctx, Web3Result msg) { ctx.write(new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(DefaultHttpStatusCodeProvider.INSTANCE.getHttpStatusCode(msg.getCode())),
From source file co.rsk.rpc.netty.Web3ResultWebSocketResponseHandler.java
public class Web3ResultWebSocketResponseHandler extends SimpleChannelInboundHandler<Web3Result> { @Override protected void channelRead0(ChannelHandlerContext ctx, Web3Result msg) { ctx.write(new TextWebSocketFrame(msg.getContent())); }
From source file code.google.nfs.rpc.netty4.client.Netty4ClientHandler.java
/** * Netty4 Client Handler * * @author <a href="mailto:coderplay@gmail.com">Min Zhou</a> */ public class Netty4ClientHandler extends SimpleChannelInboundHandler<Object> {
From source file code.google.nfs.rpc.netty4.server.Netty4ServerHandler.java
/** * Netty4 Server Handler * * @author <a href="mailto:coderplay@gmail.com">Min Zhou</a> */ public class Netty4ServerHandler extends SimpleChannelInboundHandler<Object> {
From source file com.addthis.hydra.query.web.HttpQueryHandler.java
@ChannelHandler.Sharable public class HttpQueryHandler extends SimpleChannelInboundHandler<FullHttpRequest> { private static final Logger log = LoggerFactory.getLogger(HttpQueryHandler.class); private final HttpStaticFileHandler staticFileHandler = new HttpStaticFileHandler();
From source file com.addthis.hydra.query.web.HttpStaticFileHandler.java
/**
* A simple handler that serves incoming HTTP requests to send their respective
* HTTP responses. It also implements {@code 'If-Modified-Since'} header to
* take advantage of browser cache, as described in
* <a href="http://tools.ietf.org/html/rfc2616#section-14.25">RFC 2616</a>.
* <p/>
From source file com.adobe.acs.livereload.impl.WebSocketServerHandler.java
/** * See http://feedback.livereload.com/knowledgebase/articles/86174-livereload- * protocol. */ public final class WebSocketServerHandler extends SimpleChannelInboundHandler<Object> {
From source file com.ahanda.techops.noty.clientTest.ClientHandler.java
public class ClientHandler extends SimpleChannelInboundHandler<HttpObject> { static final Logger l = LoggerFactory.getLogger(ClientHandler.class); static JSONObject credential = new JSONObject().put("userId", "ahanda").put("password", "ahandaPwd"); static JSONObject event = new JSONObject().put("id", "Ping").put("type", "SecSyncer") .put("source", "PROD.Topaz").put("etime", System.currentTimeMillis() / 1000L).put("status", "OK")
From source file com.alibaba.dubbo.qos.server.handler.HttpProcessHandler.java
/**
* Parse HttpRequest for uri and parameters
* <p>
* <ul>
* <li>if command not found, return 404</li>
* <li>if execution fails, return 500</li>