Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.netio.slip
Class SlipMessage
All Implemented Interfaces:
       ProtocolMessage

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
to Interface ProtocolMessage
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
SlipMessage(ByteBuffer payload)
Method Summary
public int
public ByteBuffer
public byte[]
public int
getMaxPayloadSize()
public int
getSize()
public void
setPayload(ByteBuffer payload)
Field Detail
payload
ByteBuffer payload
 

payload
private ByteBuffer payload
Multiplicity:
1
 
Constructor Detail
SlipMessage
void SlipMessage (ByteBuffer payload)
 
Creates a SlipMessage with the specified payload
Parameters:
payload A ByteBuffer containing the message payload
Stereotype:
create
 
Method Detail
getLength
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
 

getPayload
public ByteBuffer getPayload ()
 
Gets the message payload ByteBuffer.
Return:
The message payload ByteBuffer.
 

getPayloadBytes
public byte[] getPayloadBytes ()
 
Gets the payload as an array of bytes
Return:
The payload as an array of bytes
 

setPayload
public void setPayload (ByteBuffer payload)
 
Assigns the payload ByteBuffer.
Parameters:
payload The payload to set.
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD