public class FlashPolicyHandler
extends io.netty.handler.codec.ByteToMessageDecoder
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("flashPolicy", new FlashPolicyHandler());
pipeline.addLast("decoder", new MyProtocolDecoder());
pipeline.addLast("encoder", new MyProtocolEncoder());
pipeline.addLast("handler", new MyBusinessLogicHandler());
For license see LICENSE file in this directory| Constructor and Description |
|---|
FlashPolicyHandler()
Creates a handler allowing access from any domain and any port
|
FlashPolicyHandler(io.netty.buffer.ByteBuf policyResponse)
Create a handler with a custom XML response.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
java.util.List<java.lang.Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic FlashPolicyHandler()
public FlashPolicyHandler(io.netty.buffer.ByteBuf policyResponse)
policyResponse - Response XML to be passed back to a connecting client