public class GenericResponse extends Object implements Serializable
Constructor and Description |
---|
GenericResponse()
Constructor used by JAXB
|
GenericResponse(Message message,
ResponseInfo responseInfo)
Creates a GenericResponse with the provided single message and ResponseInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message message) |
List<Message> |
getMessages()
Messages contained in the response (which should be shown to the user)
|
ResponseInfo |
getResponseInfo() |
void |
setMessages(List<Message> messages) |
void |
setResponseInfo(ResponseInfo responseInfo) |
public GenericResponse()
public GenericResponse(Message message, ResponseInfo responseInfo)
message
- The message that should be displayed to the userresponse
- ResponseInfo with the status of the responsepublic List<Message> getMessages()
public void addMessage(Message message)
public ResponseInfo getResponseInfo()
public void setResponseInfo(ResponseInfo responseInfo)
Copyright © 2024 Gentics Software. All rights reserved.