public class HybiWebSocketFrameDecoder extends org.jboss.netty.handler.codec.replay.ReplayingDecoder<HybiWebSocketFrameDecoder.State>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HybiWebSocketFrameDecoder.State |
| 限定符和类型 | 字段和说明 |
|---|---|
private DecodingHybiFrame |
currentFrame |
private boolean |
frameFin |
private int |
frameOpcode |
private long |
framePayloadLen |
private byte[] |
inboundMaskingKey |
private boolean |
isServer |
private byte[] |
outboundMaskingKey |
private boolean |
requireMaskedInboundFrames |
private UTF8Output |
utf8Output |
| 限定符 | 构造器和说明 |
|---|---|
private |
HybiWebSocketFrameDecoder(boolean isServer,
byte[] outboundMaskingKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) static void |
applyMask(org.jboss.netty.buffer.ChannelBuffer data,
byte[] maskingKey) |
static HybiWebSocketFrameDecoder |
clientSide(byte[] outboundMaskingKey) |
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
HybiWebSocketFrameDecoder.State state) |
private void |
protocolViolation(org.jboss.netty.channel.Channel channel,
String reason) |
static HybiWebSocketFrameDecoder |
serverSide() |
private int |
toFrameLength(long l) |
checkpoint, checkpoint, cleanup, decode, decodeLast, decodeLast, getState, internalBuffer, messageReceived, setStateactualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, exceptionCaught, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, isUnfold, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationprivate final UTF8Output utf8Output
private final boolean isServer
private final boolean requireMaskedInboundFrames
private final byte[] outboundMaskingKey
private boolean frameFin
private int frameOpcode
private long framePayloadLen
private byte[] inboundMaskingKey
private DecodingHybiFrame currentFrame
private HybiWebSocketFrameDecoder(boolean isServer,
byte[] outboundMaskingKey)
public static HybiWebSocketFrameDecoder serverSide()
public static HybiWebSocketFrameDecoder clientSide(byte[] outboundMaskingKey)
protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, HybiWebSocketFrameDecoder.State state) throws Exception
decode 在类中 org.jboss.netty.handler.codec.replay.ReplayingDecoder<HybiWebSocketFrameDecoder.State>Exceptionstatic void applyMask(org.jboss.netty.buffer.ChannelBuffer data,
byte[] maskingKey)
private void protocolViolation(org.jboss.netty.channel.Channel channel,
String reason)
throws org.jboss.netty.handler.codec.frame.CorruptedFrameException
org.jboss.netty.handler.codec.frame.CorruptedFrameExceptionprivate int toFrameLength(long l)
throws org.jboss.netty.handler.codec.frame.TooLongFrameException
org.jboss.netty.handler.codec.frame.TooLongFrameExceptionCopyright © 2014. All rights reserved.