com.bea.wlp.rest.results
Class ResponseMessage

java.lang.Object
  extended by com.bea.wlp.rest.results.ResponseMessage

public class ResponseMessage
extends Object

JavaBean implementation of an error message class.


Constructor Summary
ResponseMessage(int status, String message)
           
 
Method Summary
 String getMessage()
          The message text detail for the ResponseMessage.
 int getStatus()
          The status for the ResponseMessage
 void setMessage(String message)
          Sets the text message detail of this ResponseMessage.
 void setStatus(int status)
          Sets the status code for this ResponseMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseMessage

public ResponseMessage(int status,
                       String message)
Method Detail

getStatus

public int getStatus()
The status for the ResponseMessage

Returns
the error status

setStatus

public void setStatus(int status)
Sets the status code for this ResponseMessage

Parameters
status - the code to set the status to

getMessage

public String getMessage()
The message text detail for the ResponseMessage.

Returns
the message text

setMessage

public void setMessage(String message)
Sets the text message detail of this ResponseMessage.

Parameters
message - the message detail to set


Copyright © 2011, Oracle. All rights reserved.