public class RestResponse extends Object
Modifier | Constructor and Description |
---|---|
protected |
RestResponse(String status,
Messages messages,
Object data,
EnumDataType dataType)
Instantiates a new response.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getData()
Gets the data.
|
EnumDataType |
getDataType()
Gets the data type.
|
Messages |
getMessages()
Gets the messages.
|
String |
getStatus()
Gets the status.
|
protected RestResponse(String status, Messages messages, Object data, EnumDataType dataType)
status
- the statusmessages
- the messagesdata
- the datadataType
- the data typepublic final String getStatus()
public final Messages getMessages()
public final EnumDataType getDataType()
public final <T> T getData()
T
- the generic typegetDataType()
method to discover the actual type of the data.Copyright © 2016 JBoss by Red Hat. All rights reserved.