public class ResponseInfo extends Object implements Serializable
Constructor and Description |
---|
ResponseInfo()
Empty construtor.
|
ResponseInfo(ResponseCode responseCode,
String responseMessage)
Constructor for a ResponseInfo with all parameters.
|
ResponseInfo(ResponseCode responseCode,
String responseMessage,
String property)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty()
Property, that caused the request to fail (may be null)
|
ResponseCode |
getResponseCode()
Response code
|
String |
getResponseMessage()
Response message
|
static ResponseInfo |
ok(String message)
Create an instance with
ResponseCode.OK and message |
void |
setProperty(String property) |
void |
setResponseCode(ResponseCode responseCode) |
void |
setResponseMessage(String responseMessage) |
public ResponseInfo()
public ResponseInfo(ResponseCode responseCode, String responseMessage)
responseCode
- Code for the responseresponseMessage
- Message for the responsepublic ResponseInfo(ResponseCode responseCode, String responseMessage, String property)
responseCode
- response coderesponseMessage
- response messageproperty
- property namepublic static ResponseInfo ok(String message)
ResponseCode.OK
and messagemessage
- response messagepublic ResponseCode getResponseCode()
public void setResponseCode(ResponseCode responseCode)
public String getResponseMessage()
public void setResponseMessage(String responseMessage)
public String getProperty()
public void setProperty(String property)
Copyright © 2024 Gentics Software. All rights reserved.