dist1.acb.common.transport
Class ResponseWithStringMessage

java.lang.Object
  extended bydist1.acb.common.transport.Packet
      extended bydist1.acb.common.transport.Response
          extended bydist1.acb.common.transport.ResponseWithStringMessage
All Implemented Interfaces:
java.io.Serializable, StringMessage
Direct Known Subclasses:
ResponseCloseSession, ResponseError

public abstract class ResponseWithStringMessage
extends Response
implements StringMessage

Response with implemented StringMessage interface

Version:
$Revision: 1.4 $
Author:
Alexander Stasiv
See Also:
Serialized Form

Constructor Summary
ResponseWithStringMessage(Request request, java.lang.String msg)
          Creates a new ResponseWithStringMessage object.
 
Method Summary
 java.lang.String getMsg()
          Getter for property msg.
 void setMsg(java.lang.String msg)
          Setter for property msg.
 java.lang.String toString()
          Returns string representation of the object
 
Methods inherited from class dist1.acb.common.transport.Packet
equals, getId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseWithStringMessage

public ResponseWithStringMessage(Request request,
                                 java.lang.String msg)
Creates a new ResponseWithStringMessage object.

Parameters:
request - The response will be created for this request (it will inherit the id). If request is null the id will be zero.
msg - A message
Method Detail

setMsg

public void setMsg(java.lang.String msg)
Setter for property msg.

Specified by:
setMsg in interface StringMessage
Parameters:
msg - New value of property msg.

getMsg

public java.lang.String getMsg()
Getter for property msg.

Specified by:
getMsg in interface StringMessage
Returns:
Value of property msg.

toString

public java.lang.String toString()
Returns string representation of the object

Overrides:
toString in class Packet
Returns:
The string


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.