net.sf.wallace
Class ServerResponse

java.lang.Object
  extended by net.sf.wallace.ServerResponse

public final class ServerResponse
extends Object

This class represents a tagged or untagged server response to a command. A response is tagged if a constructor including a Message is used, it is untagged otherwise.

Author:
rnewson

Nested Class Summary
static class ServerResponse.Type
           
 
Constructor Summary
ServerResponse(ClientMessage newMessage, String newResponseText)
          A tagged response with additional response text.
ServerResponse(ServerResponse.Type newType, String newResponseText)
          A tagged response with additional response text.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerResponse

public ServerResponse(ClientMessage newMessage,
                      String newResponseText)
A tagged response with additional response text.


ServerResponse

public ServerResponse(ServerResponse.Type newType,
                      String newResponseText)
A tagged response with additional response text.

Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2005 Robert Newson. All Rights Reserved.