public class FlashPolicyHandler
extends org.jboss.netty.handler.codec.frame.FrameDecoder
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("flashPolicy", new FlashPolicyHandler());
pipeline.addLast("decoder", new MyProtocolDecoder());
pipeline.addLast("encoder", new MyProtocolEncoder());
pipeline.addLast("handler", new MyBusinessLogicHandler());
| Constructor and Description |
|---|
FlashPolicyHandler()
Creates a handler allowing access from any domain and any port
|
FlashPolicyHandler(org.jboss.netty.buffer.ChannelBuffer policyResponse)
Create a handler with a custom XML response.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationpublic FlashPolicyHandler()
public FlashPolicyHandler(org.jboss.netty.buffer.ChannelBuffer policyResponse)
policyResponse - Response XML to be passed back to a connecting clientprotected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws java.lang.Exception
decode in class org.jboss.netty.handler.codec.frame.FrameDecoderjava.lang.Exception