|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.contentnode.rest.model.response.GenericResponse
public class GenericResponse
Generic response containing the response code and response messages (no additional objects)
Constructor Summary | |
---|---|
GenericResponse()
Constructor used by JAXB |
|
GenericResponse(Message message,
ResponseInfo responseInfo)
Creates a GenericResponse with the provided single message and ResponseInfo. |
Method Summary | |
---|---|
void |
addMessage(Message message)
|
java.util.List<Message> |
getMessages()
|
ResponseInfo |
getResponseInfo()
|
void |
setMessages(java.util.List<Message> messages)
|
void |
setResponseInfo(ResponseInfo responseInfo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericResponse()
public GenericResponse(Message message, ResponseInfo responseInfo)
message
- The message that should be displayed to the userresponse
- ResponseInfo with the status of the responseMethod Detail |
---|
public java.util.List<Message> getMessages()
public void addMessage(Message message)
public void setMessages(java.util.List<Message> messages)
public ResponseInfo getResponseInfo()
public void setResponseInfo(ResponseInfo responseInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |