class SafariDriverChannelHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLIENT_RESOURCE_PATH |
private java.util.concurrent.BlockingQueue<WebSocketConnection> |
connectionQueue |
private java.util.logging.Logger |
log |
private int |
port |
Constructor and Description |
---|
SafariDriverChannelHandler(int port,
java.util.concurrent.BlockingQueue<WebSocketConnection> connectionQueue) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
private void |
handleFaviconRequest(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest request) |
private void |
handleMainPageRequest(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest request) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
private void |
performWebSocketHandshake(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest request) |
private void |
sendNotAllowedResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpMethod... allowedMethods) |
private void |
sendResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpResponse response) |
private final java.util.logging.Logger log
private static final java.lang.String CLIENT_RESOURCE_PATH
private final java.util.concurrent.BlockingQueue<WebSocketConnection> connectionQueue
private final int port
public SafariDriverChannelHandler(int port, java.util.concurrent.BlockingQueue<WebSocketConnection> connectionQueue)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws java.lang.Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
java.lang.Exception
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws java.lang.Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
java.lang.Exception
private void handleFaviconRequest(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request)
private void handleMainPageRequest(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request) throws java.io.IOException
java.io.IOException
private void performWebSocketHandshake(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request)
private void sendNotAllowedResponse(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.handler.codec.http.HttpMethod... allowedMethods)
private void sendResponse(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.handler.codec.http.HttpResponse response)