sharpster.common
Class Response

java.lang.Object
  |
  +--sharpster.common.Response
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessableFilesResponse, CVSConflictResponse, CVSOutputResponse, ExistingUserResponse, FileResponse, GroupResponse, JavaRoleResponse, MessageResponse, MissingAccessResponse, MissingFilesResponse, MissingRoleResponse, MissingUsersResponse, NetworkErrorResponse, SharedFilesResponse, WriteErrorResponse

public abstract class Response
extends java.lang.Object
implements java.io.Serializable

A Reponse containing information about the users which are available on the network.

See Also:
Serialized Form

Constructor Summary
Response()
           
 
Method Summary
 java.lang.String getOrigin()
          Returns the name of the module which has created this response.
abstract  int getType()
          Get the type of this response.
 java.lang.String getUser()
          Returns the user from whose deamon the response were created.
 boolean isError()
          Get the error status of this response object.
 void setError(boolean error)
          Sets the error status of this response object.
 void setOrigin(java.lang.String origin)
          Set the name of the module which has created this response.
 void setUser(java.lang.String user)
          Sets the user from whose deamon the response were created.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Response

public Response()
Method Detail

getType

public abstract int getType()
Get the type of this response.


setError

public void setError(boolean error)
Sets the error status of this response object.

Parameters:
error - Error status to set

isError

public boolean isError()
Get the error status of this response object.

Returns:
The error status

setOrigin

public void setOrigin(java.lang.String origin)
Set the name of the module which has created this response.

Parameters:
origin - A string identifying the origin.

getOrigin

public java.lang.String getOrigin()
Returns the name of the module which has created this response.

Returns:
A string identifying the origin

setUser

public void setUser(java.lang.String user)
Sets the user from whose deamon the response were created.

Parameters:
user - A String identifying the user

getUser

public java.lang.String getUser()
Returns the user from whose deamon the response were created.

Returns:
A string identifying the user

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object