org.purl.sword.client
Class Status

java.lang.Object
  extended by org.purl.sword.client.Status

public class Status
extends Object

Representation of the status code and message.

Author:
Neil Taylor

Constructor Summary
Status(int code, String message)
          Create a new status message.
 
Method Summary
 int getCode()
          Retrieve the code.
 String getMessage()
          Get the message.
 String toString()
          Get a string representation of the status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Status

public Status(int code,
              String message)
Create a new status message.

Parameters:
code - The code.
message - The message.
Method Detail

getCode

public int getCode()
Retrieve the code.

Returns:
The code.

getMessage

public String getMessage()
Get the message.

Returns:
The message.

toString

public String toString()
Get a string representation of the status.

Overrides:
toString in class Object


Copyright © 2013 DuraSpace. All Rights Reserved.