Class ResponseInfo
java.lang.Object
com.gentics.contentnode.rest.model.response.ResponseInfo
- All Implemented Interfaces:
Serializable
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.
The response message should not be internationalized. If you want to provide a user friendly message use the message object instead.
- Author:
- floriangutmann
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty construtor.ResponseInfo
(ResponseCode responseCode, String responseMessage) Constructor for a ResponseInfo with all parameters.ResponseInfo
(ResponseCode responseCode, String responseMessage, String property) Create an instance -
Method Summary
Modifier and TypeMethodDescriptionProperty, that caused the request to fail (may be null)Response codeResponse messagestatic ResponseInfo
Create an instance withResponseCode.OK
and messagevoid
setProperty
(String property) void
setResponseCode
(ResponseCode responseCode) void
setResponseMessage
(String responseMessage)
-
Constructor Details
-
ResponseInfo
public ResponseInfo()Empty construtor. Necessary for JAXB. -
ResponseInfo
Constructor for a ResponseInfo with all parameters.- Parameters:
responseCode
- Code for the responseresponseMessage
- Message for the response
-
ResponseInfo
Create an instance- Parameters:
responseCode
- response coderesponseMessage
- response messageproperty
- property name
-
-
Method Details
-
ok
Create an instance withResponseCode.OK
and message- Parameters:
message
- response message- Returns:
- instance
-
getResponseCode
Response code- Returns:
- response code
-
setResponseCode
-
getResponseMessage
Response message- Returns:
- response message
-
setResponseMessage
-
getProperty
Property, that caused the request to fail (may be null)- Returns:
- property name
-
setProperty
-