| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.netio.slip
public class SlipMessage
Implements the com.newstep.solid.netio.ProtocolMessage construct for
SlipChannel ProtocolElements. As such, it encasulates the messages propagated
through the Slip Protocol stack. In this case its simply used by the
FramingElement as a means to pass the message to the SlipChannel
Implements:
ProtocolMessage
Links:
Implementation Implementation Link
Implements the com.newstep.solid.netio.ProtocolMessage construct for
SlipChannel ProtocolElements. As such, it encasulates the messages propagated
through the Slip Protocol stack. In this case its simply used by the
FramingElement as a means to pass the message to the SlipChannel
| Nested Class Summary |
public class |
LengthEncoding |
| Field Summary |
int |
maxPayloadSize |
ByteBuffer |
|
int |
size |
LengthEncoding |
BYTE |
LengthEncoding |
INT |
private int |
maxPayloadSize |
LengthEncoding |
SHORT |
private int |
size |
LengthEncoding |
UNSIGNED_BYTE |
LengthEncoding |
UNSIGNED_SHORT |
private ByteBuffer |
|
| Constructor Summary |
void |
LengthEncoding(Integer size, Integer maxPayload) |
void |
|
| Method Summary |
public int |
|
public ByteBuffer |
|
public byte[] |
|
public int |
getMaxPayloadSize() |
public int |
getSize() |
public void |
|
ByteBuffer payload
private ByteBuffer payload
Multiplicity:
1
void SlipMessage (ByteBuffer payload)
Creates a SlipMessage with the specified payload
Parameters:
payload A ByteBuffer containing the message payload
Stereotype:
create
public int getLength ()
Gets the length of the payload OR -1 if the payload is null
Return:
The length of the payload OR -1 if the payload is null
public ByteBuffer getPayload ()
Gets the message payload ByteBuffer.
Return:
The message payload ByteBuffer.
public byte[] getPayloadBytes ()
Gets the payload as an array of bytes
Return:
The payload as an array of bytes
public void setPayload (ByteBuffer payload)
Assigns the payload ByteBuffer.
Parameters:
payload The payload to set.
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|