Package org.glassfish.admin.rest.client
Class RestClientBase
java.lang.Object
org.glassfish.admin.rest.client.RestClientBase
- Direct Known Subclasses:
RestLeaf,RestLeafCollection
- Author:
- jasonlee
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.ws.rs.client.Clientprotected Stringprotected RestClientBaseprotected static final Stringprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRestClientBase(jakarta.ws.rs.client.Client c, RestClientBase p) -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete()execute(RestClientBase.Method method, String endpoint, boolean needsMultiPart) execute(RestClientBase.Method method, String endPoint, Map<String, Object> payload, boolean needsMultiPart) protected voidgetChildren(Map<String, Object> responseMap) getEntityMetadata(Map<String, Object> extraProperties) protected voidgetEntityValues(Map<String, Object> responseMap) protected RestClientBaseprotected Stringprotected abstract Stringintprotected <T> Tprotected voidprotected booleanisNew()protected booleanisSuccess(jakarta.ws.rs.core.Response response) booleansave()protected voidsetIsNew()protected <T> void
-
Field Details
-
RESPONSE_TYPE
- See Also:
-
entityValues
-
children
-
status
protected int status -
message
-
client
protected jakarta.ws.rs.client.Client client -
parent
-
-
Constructor Details
-
RestClientBase
-
-
Method Details
-
getParent
-
getRestUrl
-
getSegment
-
getStatus
public int getStatus() -
getMessage
-
save
public boolean save() -
delete
public boolean delete() -
execute
-
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(jakarta.ws.rs.core.Response response) -
isNew
protected boolean isNew() -
setIsNew
protected void setIsNew() -
initialize
protected void initialize() -
getValue
-
setValue
-
getEntityMetadata
-
getEntityValues
-
getChildren
-