|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.frame.FrameDecoder
org.webbitserver.netty.FlashPolicyFileDecoder
public class FlashPolicyFileDecoder
Checks the received ChannelBuffers for Flash policy file requests.
If this decoder detects a Flash policy file request it adds a
FlashPolicyFileHandler to the
ChannelPipeline and removes
itself from the pipeline. If a Flash policy file request is not detected in
the first 23 bytes of the buffer, the decoder removes itself from the
pipeline.
This implementation is based on the
"replacing a decoder with another decoder in a pipeline" section of the
FrameDecoder
documentation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
|---|
org.jboss.netty.channel.ChannelHandler.Sharable |
| Field Summary |
|---|
| Fields inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder |
|---|
cumulation, DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS |
| Constructor Summary | |
|---|---|
FlashPolicyFileDecoder(Executor executor,
Thread.UncaughtExceptionHandler exceptionHandler,
Thread.UncaughtExceptionHandler ioExceptionHandler,
int publicPort)
|
|
| Method Summary | |
|---|---|
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
|
| Methods inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder |
|---|
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulation |
| Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
|---|
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlashPolicyFileDecoder(Executor executor,
Thread.UncaughtExceptionHandler exceptionHandler,
Thread.UncaughtExceptionHandler ioExceptionHandler,
int publicPort)
| Method Detail |
|---|
protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws Exception
decode in class org.jboss.netty.handler.codec.frame.FrameDecoderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||