1.0.0

org.eclipse.soda.dk.message
Class SimpleResponseMessage

java.lang.Object
  extended by org.eclipse.soda.dk.message.Message
      extended by org.eclipse.soda.dk.message.SimpleResponseMessage
All Implemented Interfaces:
java.lang.Cloneable, MessageService, ResponseMessageService

public class SimpleResponseMessage
extends Message
implements ResponseMessageService

Version:
1.0.0

Field Summary
protected  MessageService sentMessage
          Define the sent message (MessageService) field.
 
Fields inherited from interface org.eclipse.soda.dk.message.service.MessageService
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, STRING, THREAD_PRIORITY
 
Constructor Summary
SimpleResponseMessage()
          Constructs an instance of this class.
SimpleResponseMessage(byte[] data)
          Constructs an instance of this class from the specified data parameter.
SimpleResponseMessage(byte[] data, int offset, int length)
          Constructs an instance of this class from the specified data, offset and length parameters.
SimpleResponseMessage(byte[] data, MessageService sentMessage)
          Constructs an instance of this class from the specified data and sent message parameters.
SimpleResponseMessage(java.lang.String data)
          Constructs an instance of this class from the specified data parameter.
 
Method Summary
 MessageService getSentMessage()
          Gets the sent message (MessageService) value.
 void setSentMessage(MessageService sentMessage)
          Sets the sent message value.
 java.lang.String toString()
          Returns the string value.
 
Methods inherited from class org.eclipse.soda.dk.message.Message
clone, decodeMessage, decodeMessage, encodeMessage, encodeMessage, equals, get, getBoolean, getByte, getBytes, getData, getDataBytes, getDataLength, getDataOffset, getInt, getIntByte, getIntByte, getKey, getLittleEndianInt, getLittleEndianLong, getLong, getLongByte, getLongByte, getParameter, getPriority, getShort, hashCode, isBigEndian, length, lookup, matches, put, setBoolean, setByte, setBytes, setData, setInt, setLong, setShort, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.message.service.MessageService
clone, decodeMessage, decodeMessage, encodeMessage, encodeMessage, get, getByte, getBytes, getDataBytes, getDataLength, getDataOffset, getPriority, lookup, matches, put, setByte, setBytes
 

Field Detail

sentMessage

protected MessageService sentMessage
Define the sent message (MessageService) field.

Constructor Detail

SimpleResponseMessage

public SimpleResponseMessage()
Constructs an instance of this class.

See Also:
SimpleResponseMessage(byte[]), SimpleResponseMessage(byte[],MessageService), SimpleResponseMessage(byte[],int,int), SimpleResponseMessage(String)

SimpleResponseMessage

public SimpleResponseMessage(byte[] data)
Constructs an instance of this class from the specified data parameter.

Parameters:
data - The data (byte[]) parameter.
See Also:
SimpleResponseMessage(), SimpleResponseMessage(byte[],MessageService), SimpleResponseMessage(byte[],int,int), SimpleResponseMessage(String)

SimpleResponseMessage

public SimpleResponseMessage(byte[] data,
                             MessageService sentMessage)
Constructs an instance of this class from the specified data and sent message parameters.

Parameters:
data - The data (byte[]) parameter.
sentMessage - The sent message (MessageService) parameter.
See Also:
SimpleResponseMessage(), SimpleResponseMessage(byte[]), SimpleResponseMessage(byte[],int,int), SimpleResponseMessage(String)

SimpleResponseMessage

public SimpleResponseMessage(byte[] data,
                             int offset,
                             int length)
Constructs an instance of this class from the specified data, offset and length parameters.

Parameters:
data - The data (byte[]) parameter.
offset - The offset (int) parameter.
length - The length (int) parameter.
See Also:
SimpleResponseMessage(), SimpleResponseMessage(byte[]), SimpleResponseMessage(byte[],MessageService), SimpleResponseMessage(String)

SimpleResponseMessage

public SimpleResponseMessage(java.lang.String data)
Constructs an instance of this class from the specified data parameter.

Parameters:
data - The data (String) parameter.
See Also:
SimpleResponseMessage(), SimpleResponseMessage(byte[]), SimpleResponseMessage(byte[],MessageService), SimpleResponseMessage(byte[],int,int)
Method Detail

getSentMessage

public MessageService getSentMessage()
Gets the sent message (MessageService) value.

Specified by:
getSentMessage in interface ResponseMessageService
Returns:
The sent message (MessageService) value.
See Also:
setSentMessage(MessageService)

setSentMessage

public void setSentMessage(MessageService sentMessage)
Sets the sent message value.

Parameters:
sentMessage - The sent message (MessageService) parameter.
See Also:
getSentMessage()

toString

public java.lang.String toString()
Returns the string value.

Overrides:
toString in class Message
Returns:
The string (String) value.
See Also:
Message.toString(byte[])

1.0.0

Copyright (c) 1999, 2007 IBM