Class ProgressStatusEventJsonProvider
- java.lang.Object
-
- org.glassfish.admin.rest.provider.BaseProvider<ProgressStatusEvent>
-
- org.glassfish.admin.rest.provider.ProgressStatusEventJsonProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<ProgressStatusEvent>
@Provider @Produces({"application/json","application/x-javascript"}) public class ProgressStatusEventJsonProvider extends BaseProvider<ProgressStatusEvent>
- 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 ProgressStatusEventJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent(ProgressStatusEvent proxy)
protected boolean
isGivenTypeWritable(Class<?> type, Type genericType)
Overwrite this if you need different test of type compatibility.void
writeTo(ProgressStatusEvent proxy, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable
-
-
-
-
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<ProgressStatusEvent>
-
writeTo
public void writeTo(ProgressStatusEvent proxy, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<ProgressStatusEvent>
- Overrides:
writeTo
in classBaseProvider<ProgressStatusEvent>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
getContent
public String getContent(ProgressStatusEvent proxy)
- Specified by:
getContent
in classBaseProvider<ProgressStatusEvent>
-
-