com.gentics.contentnode.rest.model.response
Class ResponseInfo

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.ResponseInfo

public class ResponseInfo
extends Object

Response information that contains a response code and a response message.

The response message should not be internationalized. If you want to provide a user friendly message use the message object instead.

Author:
floriangutmann

Constructor Summary
ResponseInfo()
          Empty construtor.
ResponseInfo(ResponseCode responseCode, String responseMessage)
          Constructor for a ResponseInfo with all parameters.
 
Method Summary
 ResponseCode getResponseCode()
           
 String getResponseMessage()
           
 void setResponseCode(ResponseCode responseCode)
           
 void setResponseMessage(String responseMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseInfo

public ResponseInfo()
Empty construtor. Necessary for JAXB.


ResponseInfo

public ResponseInfo(ResponseCode responseCode,
                    String responseMessage)
Constructor for a ResponseInfo with all parameters.

Parameters:
responseCode - Code for the response
responseMessage - Message for the response
Method Detail

getResponseCode

public ResponseCode getResponseCode()

setResponseCode

public void setResponseCode(ResponseCode responseCode)

getResponseMessage

public String getResponseMessage()

setResponseMessage

public void setResponseMessage(String responseMessage)


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.