|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openshift.internal.client.response.RestResponse
public class RestResponse
The Class Response.
Constructor Summary | |
---|---|
protected |
RestResponse(String status,
Messages messages,
Object data,
EnumDataType dataType)
Instantiates a new response. |
Method Summary | ||
---|---|---|
|
getData()
Gets the data. |
|
EnumDataType |
getDataType()
Gets the data type. |
|
Messages |
getMessages()
Gets the messages. |
|
String |
getStatus()
Gets the status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RestResponse(String status, Messages messages, Object data, EnumDataType dataType)
status
- the statusmessages
- the messagesdata
- the datadataType
- the data typeMethod Detail |
---|
public final String getStatus()
public final Messages getMessages()
public final EnumDataType getDataType()
public final <T> T getData()
T
- the generic type
getDataType()
method to discover the actual type of the data.
|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |