public class TcpProtocolHandle extends ProtocolStreamHandle
_contentLength, _source| Constructor and Description |
|---|
TcpProtocolHandle(ByteBuffer source) |
| Modifier and Type | Method and Description |
|---|---|
short |
ReadContentDelimiter() |
int |
ReadContentLength() |
protected String |
ReadCountedString() |
protected boolean |
readExtendedHeader(short headerType,
HashMap<String,Object> dict) |
protected int |
ReadInt32() |
int |
ReadMajorVersion() |
int |
ReadMinorVersion() |
short |
ReadOperation() |
String |
ReadPreamble() |
HashMap<String,Object> |
ReadTransportHeaders() |
protected short |
ReadUInt16() |
void |
WriteContentDelimiter(short value) |
void |
WriteContentLength(int value) |
protected void |
WriteCountedString(String value) |
protected boolean |
writeExtendedHeader(Map.Entry<String,Object> entry) |
protected void |
WriteInt32(int value) |
void |
WriteMajorVersion() |
void |
WriteMinorVersion() |
void |
WriteOperation(short value) |
void |
WritePreamble() |
void |
WriteTransportHeaders(HashMap<String,Object> headers) |
protected void |
WriteUInt16(short value) |
ReadByte, ReadBytes, ReadContent, WriteByte, WriteBytes, WriteContentpublic TcpProtocolHandle(ByteBuffer source)
public String ReadPreamble()
public void WritePreamble()
public int ReadMajorVersion()
public void WriteMajorVersion()
public int ReadMinorVersion()
public void WriteMinorVersion()
public short ReadOperation()
public void WriteOperation(short value)
public short ReadContentDelimiter()
public void WriteContentDelimiter(short value)
public int ReadContentLength()
public void WriteContentLength(int value)
public HashMap<String,Object> ReadTransportHeaders() throws NotSupportedException
NotSupportedExceptionprotected boolean readExtendedHeader(short headerType,
HashMap<String,Object> dict)
throws NotSupportedException
NotSupportedExceptionprotected final short ReadUInt16()
protected final void WriteUInt16(short value)
protected int ReadInt32()
protected void WriteInt32(int value)
protected final String ReadCountedString() throws NotSupportedException
NotSupportedExceptionprotected final void WriteCountedString(String value)
Copyright © 2021. All rights reserved.