public class PlayHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Modifier and Type | Class and Description |
---|---|
class |
PlayHandler.NettyInvocation |
static class |
PlayHandler.WebSocketInvocation |
Modifier and Type | Field and Description |
---|---|
Map<String,org.jboss.netty.channel.ChannelHandler> |
pipelines
The Pipeline is given for a PlayHandler
|
Constructor and Description |
---|
PlayHandler() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addToResponse(Http.Response response,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse) |
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
closeChunked(Http.Request playRequest,
Http.Response playResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
copyResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
protected static Map<String,Object> |
getBindingForErrors(Exception e,
boolean isError) |
protected static Map<String,Http.Cookie> |
getCookies(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
protected static Map<String,Http.Header> |
getHeaders(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
static boolean |
isKeepAlive(org.jboss.netty.handler.codec.http.HttpMessage message) |
static boolean |
isModified(String etag,
long last,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
Http.Request |
parseRequest(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.channel.MessageEvent messageEvent) |
static void |
serve404(NotFound e,
org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
static void |
serve500(Exception e,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
serveStatic(RenderStatic renderStatic,
org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.channel.MessageEvent e) |
static void |
setContentLength(org.jboss.netty.handler.codec.http.HttpMessage message,
long contentLength) |
void |
writeChunk(Http.Request playRequest,
Http.Response playResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
Object chunk) |
protected static void |
writeResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
protected static void addToResponse(Http.Response response, org.jboss.netty.handler.codec.http.HttpResponse nettyResponse)
protected static void writeResponse(org.jboss.netty.channel.ChannelHandlerContext ctx, Http.Response response, org.jboss.netty.handler.codec.http.HttpResponse nettyResponse, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
public void copyResponse(org.jboss.netty.channel.ChannelHandlerContext ctx, Http.Request request, Http.Response response, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) throws Exception
Exception
public Http.Request parseRequest(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, org.jboss.netty.channel.MessageEvent messageEvent) throws Exception
Exception
protected static Map<String,Http.Header> getHeaders(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
protected static Map<String,Http.Cookie> getCookies(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public static void serve404(NotFound e, org.jboss.netty.channel.ChannelHandlerContext ctx, Http.Request request, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
protected static Map<String,Object> getBindingForErrors(Exception e, boolean isError)
public static void serve500(Exception e, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
public void serveStatic(RenderStatic renderStatic, org.jboss.netty.channel.ChannelHandlerContext ctx, Http.Request request, Http.Response response, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, org.jboss.netty.channel.MessageEvent e)
public static boolean isModified(String etag, long last, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
public static boolean isKeepAlive(org.jboss.netty.handler.codec.http.HttpMessage message)
public static void setContentLength(org.jboss.netty.handler.codec.http.HttpMessage message, long contentLength)
public void writeChunk(Http.Request playRequest, Http.Response playResponse, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, Object chunk)
public void closeChunked(Http.Request playRequest, Http.Response playResponse, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly