public class DefaultClientResponse<T> extends Object implements ClientResponse<T>
| Constructor and Description |
|---|
DefaultClientResponse() |
DefaultClientResponse(com.fasterxml.jackson.databind.JavaType javaType,
javax.ws.rs.core.Response serverResponse,
ResponseCodes expectedCode) |
| Modifier and Type | Method and Description |
|---|---|
T |
getEntity() |
String |
getErrorMsg() |
String |
getRawEntity() |
int |
getStatusCode() |
boolean |
isSuccess() |
void |
setEntity(T entity) |
void |
setErrorMsg(String errorMsg) |
void |
setRawEntity(String rawEntity) |
void |
setStatusCode(int statusCode) |
void |
setSuccess(boolean success) |
String |
toString() |
public DefaultClientResponse()
public DefaultClientResponse(com.fasterxml.jackson.databind.JavaType javaType,
javax.ws.rs.core.Response serverResponse,
ResponseCodes expectedCode)
public int getStatusCode()
getStatusCode in interface ClientResponse<T>public void setStatusCode(int statusCode)
setStatusCode in interface ClientResponse<T>public boolean isSuccess()
isSuccess in interface ClientResponse<T>public void setSuccess(boolean success)
setSuccess in interface ClientResponse<T>public T getEntity()
getEntity in interface ClientResponse<T>public void setEntity(T entity)
setEntity in interface ClientResponse<T>public String getErrorMsg()
getErrorMsg in interface ClientResponse<T>public void setErrorMsg(String errorMsg)
setErrorMsg in interface ClientResponse<T>public String getRawEntity()
public void setRawEntity(String rawEntity)
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.