Class AdminCommandStateJsonProvider
- java.lang.Object
-
- org.glassfish.admin.rest.provider.BaseProvider<AdminCommandState>
-
- org.glassfish.admin.rest.provider.AdminCommandStateJsonProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<AdminCommandState>
- Direct Known Subclasses:
AdminCommandStateCmdResultJsonProvider
@Provider @Produces({"application/json","application/x-javascript"}) public class AdminCommandStateJsonProvider extends BaseProvider<AdminCommandState>
- Author:
- mmares
-
-
Field Summary
-
Fields inherited from class org.glassfish.admin.rest.provider.BaseProvider
desiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaTypes, uriInfo
-
-
Constructor Summary
Constructors Constructor Description AdminCommandStateJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addActionReporter(ActionReporter ar, jakarta.json.JsonObjectBuilder json)
String
getContent(AdminCommandState proxy)
protected boolean
isGivenTypeWritable(Class<?> type, Type genericType)
Overwrite this if you need different test of type compatibility.jakarta.json.JsonObject
processState(AdminCommandState state)
-
Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable, writeTo
-
-
-
-
Method Detail
-
isGivenTypeWritable
protected boolean isGivenTypeWritable(Class<?> type, Type genericType)
Description copied from class:BaseProvider
Overwrite this if you need different test of type compatibility. Used from isWritable method.- Overrides:
isGivenTypeWritable
in classBaseProvider<AdminCommandState>
-
getContent
public String getContent(AdminCommandState proxy)
- Specified by:
getContent
in classBaseProvider<AdminCommandState>
-
processState
public jakarta.json.JsonObject processState(AdminCommandState state) throws jakarta.json.JsonException
- Throws:
jakarta.json.JsonException
-
addActionReporter
protected void addActionReporter(ActionReporter ar, jakarta.json.JsonObjectBuilder json) throws jakarta.json.JsonException
- Throws:
jakarta.json.JsonException
-
-