- All Implemented Interfaces:
- io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
public class FlashPolicyHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
A Flash policy file handler
Will detect connection attempts made by Adobe Flash clients and return a policy file response
After the policy has been sent, it will instantly close the connection.
If the first bytes sent are not a policy file request the handler will simply remove itself
from the pipeline.
Read more at http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
Example usage:
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