public class NettyRemotingProtocolHandle extends RemotingTcpProtocolHandle
| Modifier and Type | Field and Description |
|---|---|
short |
contentDelimiter |
int |
majorVersion |
int |
minorVersion |
short |
operation |
String |
preamble |
HashMap<String,Object> |
transportHeaders |
_contentLength, _source| Constructor and Description |
|---|
NettyRemotingProtocolHandle(org.jboss.netty.buffer.ChannelBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
ReadByte() |
protected byte[] |
ReadBytes(int length) |
short |
ReadContentDelimiter() |
int |
ReadContentLength() |
protected int |
ReadInt32() |
int |
ReadMajorVersion() |
int |
ReadMinorVersion() |
short |
ReadOperation() |
String |
ReadPreamble() |
HashMap<String,Object> |
ReadTransportHeaders() |
void |
setContentBuffer(org.jboss.netty.buffer.ChannelBuffer buffer) |
void |
setContentLength(int l) |
protected void |
WriteByte(byte value) |
protected void |
WriteBytes(byte[] value) |
protected void |
WriteInt32(int value) |
readExtendedHeader, writeExtendedHeaderReadCountedString, ReadUInt16, WriteContentDelimiter, WriteContentLength, WriteCountedString, WriteMajorVersion, WriteMinorVersion, WriteOperation, WritePreamble, WriteTransportHeaders, WriteUInt16ReadContent, WriteContentpublic String preamble
public int majorVersion
public int minorVersion
public short operation
public short contentDelimiter
public NettyRemotingProtocolHandle(org.jboss.netty.buffer.ChannelBuffer buffer)
public void setContentLength(int l)
public void setContentBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
public String ReadPreamble()
ReadPreamble in class TcpProtocolHandlepublic int ReadMajorVersion()
ReadMajorVersion in class TcpProtocolHandlepublic int ReadMinorVersion()
ReadMinorVersion in class TcpProtocolHandlepublic short ReadOperation()
ReadOperation in class TcpProtocolHandlepublic short ReadContentDelimiter()
ReadContentDelimiter in class TcpProtocolHandlepublic int ReadContentLength()
ReadContentLength in class TcpProtocolHandlepublic HashMap<String,Object> ReadTransportHeaders() throws NotSupportedException
ReadTransportHeaders in class TcpProtocolHandleNotSupportedExceptionprotected int ReadByte()
ReadByte in class ProtocolStreamHandleprotected void WriteByte(byte value)
WriteByte in class ProtocolStreamHandleprotected byte[] ReadBytes(int length)
ReadBytes in class ProtocolStreamHandleprotected void WriteBytes(byte[] value)
WriteBytes in class ProtocolStreamHandleprotected int ReadInt32()
ReadInt32 in class TcpProtocolHandleprotected void WriteInt32(int value)
WriteInt32 in class TcpProtocolHandleCopyright © 2021. All rights reserved.