play.server
类 FlashPolicyHandler

java.lang.Object
  继承者 org.jboss.netty.channel.SimpleChannelUpstreamHandler
      继承者 org.jboss.netty.handler.codec.frame.FrameDecoder
          继承者 play.server.FlashPolicyHandler
所有已实现的接口:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler, org.jboss.netty.channel.LifeCycleAwareChannelHandler

public class FlashPolicyHandler
extends org.jboss.netty.handler.codec.frame.FrameDecoder


嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
org.jboss.netty.channel.ChannelHandler.Sharable
 
字段摘要
 
从类 org.jboss.netty.handler.codec.frame.FrameDecoder 继承的字段
cumulation, DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS
 
构造方法摘要
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.
 
方法摘要
protected  java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
从类 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
 
从类 org.jboss.netty.channel.SimpleChannelUpstreamHandler 继承的方法
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FlashPolicyHandler

public FlashPolicyHandler()
Creates a handler allowing access from any domain and any port


FlashPolicyHandler

public FlashPolicyHandler(org.jboss.netty.buffer.ChannelBuffer policyResponse)
Create a handler with a custom XML response. Useful for defining your own domains and ports.

参数:
policyResponse - Response XML to be passed back to a connecting client
方法详细信息

decode

protected 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
指定者:
org.jboss.netty.handler.codec.frame.FrameDecoder 中的 decode
抛出:
java.lang.Exception


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly