com.signalsoftcorp.lst.meri
Class MERIResponse

java.lang.Object
  |
  +--com.signalsoftcorp.lst.meri.MERIResponse
Direct Known Subclasses:
MERI10Response

public class MERIResponse
extends java.lang.Object

Base class for all MERI response classes.

See Also:
MERIConstants

Constructor Summary
MERIResponse()
          Default constructor
MERIResponse(int code)
          Construct with a with a status code.
MERIResponse(int code, java.lang.String detail)
          Construct with a status code and detail message.
 
Method Summary
 int getResponseCode()
          Return the status code.
 java.lang.String getResponseDetail()
          Get the response detail string.
 boolean isOk()
          Returns true if the current response code indicates a success.
 void setResponseCode(int code)
          Set the status code.
 void setResponseDetail(java.lang.String detail)
          Set the response detail/description string.
 java.lang.String toString()
          String representation of the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MERIResponse

public MERIResponse()
Default constructor

MERIResponse

public MERIResponse(int code)
Construct with a with a status code.
Parameters:
code - The status code.

MERIResponse

public MERIResponse(int code,
                    java.lang.String detail)
Construct with a status code and detail message.
Parameters:
code - The status code. See MERIConstants
detail - An optional description of the response.
Method Detail

getResponseCode

public int getResponseCode()
Return the status code.
Returns:
The status code.

setResponseCode

public void setResponseCode(int code)
Set the status code.
Parameters:
code - The new value for the code.

getResponseDetail

public java.lang.String getResponseDetail()
Get the response detail string.
Returns:
The response detail/description.

setResponseDetail

public void setResponseDetail(java.lang.String detail)
Set the response detail/description string.
Parameters:
detail - The description.

isOk

public boolean isOk()
Returns true if the current response code indicates a success.
Returns:
True if successful.

toString

public java.lang.String toString()
String representation of the response.
Overrides:
toString in class java.lang.Object
Returns:
A string representation of the response.


Copyright © SignalSoft Corp. All Rights Reserved.