public class FlashPolicyFileDecoder
extends org.jboss.netty.handler.codec.frame.FrameDecoder
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.
| 限定符和类型 | 字段和说明 |
|---|---|
private Thread.UncaughtExceptionHandler |
exceptionHandler |
private Executor |
executor |
private static org.jboss.netty.buffer.ChannelBuffer |
FLASH_POLICY_REQUEST |
private Thread.UncaughtExceptionHandler |
ioExceptionHandler |
private int |
publicPort |
| 构造器和说明 |
|---|
FlashPolicyFileDecoder(Executor executor,
Thread.UncaughtExceptionHandler exceptionHandler,
Thread.UncaughtExceptionHandler ioExceptionHandler,
int publicPort) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected 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, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationprivate static final org.jboss.netty.buffer.ChannelBuffer FLASH_POLICY_REQUEST
private final Executor executor
private final Thread.UncaughtExceptionHandler exceptionHandler
private final Thread.UncaughtExceptionHandler ioExceptionHandler
private final int publicPort
public FlashPolicyFileDecoder(Executor executor, Thread.UncaughtExceptionHandler exceptionHandler, Thread.UncaughtExceptionHandler ioExceptionHandler, int publicPort)
Copyright © 2014. All rights reserved.