org.objectweb.joram.shared.admin

Class AdminReply

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
CreateDestinationReply, CreateUserReply, Monitor_Reply

public class AdminReply
extends java.lang.Object
implements java.io.Serializable

An AdminReply is a reply sent by a org.objectweb.joram.mom.dest.AdminTopic topic and containing data or information destinated to a client administrator.

See Also:
Serialized Form

Constructor Summary

AdminReply(boolean success, String info)
Constructs an AdminReply instance.
AdminReply(boolean success, String info, Object replyObj)
Constructs an AdminReply instance.

Method Summary

String
getInfo()
Returns the carried info.
Object
getReplyObject()
Returns the carried object.
boolean
succeeded()
Returns true if this reply replies to a successful request.

Constructor Details

AdminReply

public AdminReply(boolean success,
                  String info)
Constructs an AdminReply instance.

Parameters:
success - true if this reply replies to a successful request.
info - Information to carry.


AdminReply

public AdminReply(boolean success,
                  String info,
                  Object replyObj)
Constructs an AdminReply instance.

Parameters:
success - true if this reply replies to a successful request.
info - Information to carry.
replyObj - Object to carry.

Method Details

getInfo

public String getInfo()
Returns the carried info.


getReplyObject

public Object getReplyObject()
Returns the carried object.


succeeded

public boolean succeeded()
Returns true if this reply replies to a successful request.


Copyright B) 2004 Scalagent - All rights reserved