org.glassfish.admin.rest.client
Class RestClientBase
java.lang.Object
org.glassfish.admin.rest.client.RestClientBase
- Direct Known Subclasses:
- RestLeaf, RestLeafCollection
public abstract class RestClientBase
- extends Object
- Author:
- jasonlee
|
Method Summary |
protected com.sun.jersey.multipart.FormDataMultiPart |
buildFormDataMultipart(Map<String,Object> payload)
|
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
|
getValue(String key,
Class<T> clazz)
|
protected void |
initialize()
|
protected boolean |
isNew()
|
protected boolean |
isSuccess(com.sun.jersey.api.client.ClientResponse response)
|
boolean |
save()
|
protected void |
setIsNew()
|
protected
|
setValue(String key,
T value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESPONSE_TYPE
protected static final String RESPONSE_TYPE
- See Also:
- Constant Field Values
entityValues
protected Map<String,Object> entityValues
children
protected List<String> children
status
protected int status
message
protected String message
client
protected com.sun.jersey.api.client.Client client
parent
protected RestClientBase parent
RestClientBase
protected RestClientBase(com.sun.jersey.api.client.Client c,
RestClientBase p)
getParent
protected RestClientBase getParent()
getRestUrl
protected String getRestUrl()
getSegment
protected abstract String getSegment()
getStatus
public int getStatus()
getMessage
public String getMessage()
save
public boolean save()
delete
public boolean delete()
execute
public RestResponse execute(RestClientBase.Method method,
String endpoint,
boolean needsMultiPart)
execute
public RestResponse execute(RestClientBase.Method method,
String endPoint,
Map<String,Object> payload)
execute
public RestResponse execute(RestClientBase.Method method,
String endPoint,
Map<String,Object> payload,
boolean needsMultiPart)
isSuccess
protected boolean isSuccess(com.sun.jersey.api.client.ClientResponse response)
isNew
protected boolean isNew()
setIsNew
protected void setIsNew()
initialize
protected void initialize()
getValue
protected <T> T getValue(String key,
Class<T> clazz)
setValue
protected <T> void setValue(String key,
T value)
getEntityMetadata
protected Map<String,String> getEntityMetadata(Map<String,Object> extraProperties)
getEntityValues
protected void getEntityValues(Map<String,Object> responseMap)
getChildren
protected void getChildren(Map<String,Object> responseMap)
buildFormDataMultipart
protected com.sun.jersey.multipart.FormDataMultiPart buildFormDataMultipart(Map<String,Object> payload)
Copyright © 2012. All Rights Reserved.