1.0.0

org.eclipse.soda.dk.message
Class AsciiResponseMessage

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

public class AsciiResponseMessage
extends AsciiMessage
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
AsciiResponseMessage()
          Constructs an instance of this class.
AsciiResponseMessage(byte[] data)
          Constructs an instance of this class from the specified data parameter.
AsciiResponseMessage(byte[] data, MessageService sentMessage)
          Constructs an instance of this class from the specified data and sent message parameters.
AsciiResponseMessage(java.lang.String data)
          Constructs an instance of this class from the specified data parameter.
AsciiResponseMessage(java.lang.String data, MessageService sentMessage)
          Constructs an instance of this class from the specified data and sent message parameters.
 
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.AsciiMessage
toString
 
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
 
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

AsciiResponseMessage

public AsciiResponseMessage()
Constructs an instance of this class.

See Also:
AsciiResponseMessage(String), AsciiResponseMessage(String,MessageService), AsciiResponseMessage(byte[]), AsciiResponseMessage(byte[],MessageService)

AsciiResponseMessage

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

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

AsciiResponseMessage

public AsciiResponseMessage(java.lang.String data,
                            MessageService sentMessage)
Constructs an instance of this class from the specified data and sent message parameters.

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

AsciiResponseMessage

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

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

AsciiResponseMessage

public AsciiResponseMessage(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:
AsciiResponseMessage(), AsciiResponseMessage(String), AsciiResponseMessage(String,MessageService), AsciiResponseMessage(byte[])
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 AsciiMessage
Returns:
The string (String) value.
See Also:
AsciiMessage.toString(byte[])

1.0.0

Copyright (c) 1999, 2007 IBM