Class RestCollectionProvider
- java.lang.Object
-
- org.glassfish.admin.rest.provider.BaseProvider<RestCollection>
-
- org.glassfish.admin.rest.provider.RestCollectionProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<RestCollection>
@Provider @Produces("application/vnd.oracle.glassfish+json") public class RestCollectionProvider extends BaseProvider<RestCollection>- Since:
- 4.0
-
-
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 RestCollectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent(RestCollection proxy)Converts aRestCollectioninto a Json object and then returns it as as String representation.-
Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isGivenTypeWritable, isWriteable, writeTo
-
-
-
-
Method Detail
-
getContent
public String getContent(RestCollection proxy)
Converts aRestCollectioninto a Json object and then returns it as as String representation.- Specified by:
getContentin classBaseProvider<RestCollection>- Parameters:
proxy-- Returns:
-
-