public class FlashPolicyFileHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
This implementation is based on the waywardmonkeys/netty-flash-crossdomain-policy-server project and the Setting up a factory policy file server article.
| 限定符和类型 | 字段和说明 |
|---|---|
private ConnectionHelper |
connectionHelper |
private int |
publicPort |
| 构造器和说明 |
|---|
FlashPolicyFileHandler(Executor executor,
Thread.UncaughtExceptionHandler exceptionHandler,
Thread.UncaughtExceptionHandler ioExceptionHandler,
int publicPort) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
private org.jboss.netty.buffer.ChannelBuffer |
getPolicyFileContents() |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
private final int publicPort
private final ConnectionHelper connectionHelper
public FlashPolicyFileHandler(Executor executor, Thread.UncaughtExceptionHandler exceptionHandler, Thread.UncaughtExceptionHandler ioExceptionHandler, int publicPort)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived 在类中 org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprivate org.jboss.netty.buffer.ChannelBuffer getPolicyFileContents()
throws Exception
ExceptionCopyright © 2014. All rights reserved.