public abstract class RestClientBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestClientBase.Method |
Modifier and Type | Field and Description |
---|---|
protected List<String> |
children |
protected javax.ws.rs.client.Client |
client |
protected Map<String,Object> |
entityValues |
protected String |
message |
protected RestClientBase |
parent |
protected static String |
RESPONSE_TYPE |
protected int |
status |
Modifier | Constructor and Description |
---|---|
protected |
RestClientBase(javax.ws.rs.client.Client c,
RestClientBase p) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete() |
RestResponse |
execute(RestClientBase.Method method,
String endpoint,
boolean needsMultiPart) |
RestResponse |
execute(RestClientBase.Method method,
String endPoint,
Map<String,Object> payload) |
RestResponse |
execute(RestClientBase.Method method,
String endPoint,
Map<String,Object> payload,
boolean needsMultiPart) |
protected void |
getChildren(Map<String,Object> responseMap) |
protected Map<String,String> |
getEntityMetadata(Map<String,Object> extraProperties) |
protected void |
getEntityValues(Map<String,Object> responseMap) |
String |
getMessage() |
protected RestClientBase |
getParent() |
protected String |
getRestUrl() |
protected abstract String |
getSegment() |
int |
getStatus() |
protected <T> T |
getValue(String key,
Class<T> clazz) |
protected void |
initialize() |
protected boolean |
isNew() |
protected boolean |
isSuccess(javax.ws.rs.core.Response response) |
boolean |
save() |
protected void |
setIsNew() |
protected <T> void |
setValue(String key,
T value) |
protected static final String RESPONSE_TYPE
protected int status
protected String message
protected javax.ws.rs.client.Client client
protected RestClientBase parent
protected RestClientBase(javax.ws.rs.client.Client c, RestClientBase p)
protected RestClientBase getParent()
protected String getRestUrl()
protected abstract String getSegment()
public int getStatus()
public String getMessage()
public boolean save()
public boolean delete()
public RestResponse execute(RestClientBase.Method method, String endpoint, boolean needsMultiPart)
public RestResponse execute(RestClientBase.Method method, String endPoint, Map<String,Object> payload)
public RestResponse execute(RestClientBase.Method method, String endPoint, Map<String,Object> payload, boolean needsMultiPart)
protected boolean isSuccess(javax.ws.rs.core.Response response)
protected boolean isNew()
protected void setIsNew()
protected void initialize()
protected <T> void setValue(String key, T value)
protected Map<String,String> getEntityMetadata(Map<String,Object> extraProperties)
Copyright © 2018. All rights reserved.