Class CoreIODelegate
java.lang.Object
org.nuxeo.ecm.webengine.rest.coreiodelegate.PartialCoreIODelegate
org.nuxeo.ecm.webengine.rest.coreiodelegate.CoreIODelegate
- All Implemented Interfaces:
jakarta.ws.rs.core.Feature,jakarta.ws.rs.ext.MessageBodyReader<Object>,jakarta.ws.rs.ext.MessageBodyWriter<Object>
@Singleton
@Provider
@Produces({"application/json","text/csv","application/scim+json"})
public class CoreIODelegate
extends PartialCoreIODelegate
implements jakarta.ws.rs.core.Feature
A Jakarta RS
MessageBodyWriter that try to delegate the marshalling to all nuxeo-core-io Writer and
Reader. This singleton is also registering an injection of RenderingContext- Since:
- 11.1
-
Field Summary
Fields inherited from class org.nuxeo.ecm.webengine.rest.coreiodelegate.PartialCoreIODelegate
CONTENT_TYPE, NUXEO_ENTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) If it returns true, it delegates marshalling toMarshallerRegistry.booleanconfigure(jakarta.ws.rs.core.FeatureContext context) protected RenderingContextMethods inherited from class org.nuxeo.ecm.webengine.rest.coreiodelegate.PartialCoreIODelegate
getSize, isReadable, isWriteable, readFrom, writeTo
-
Constructor Details
-
CoreIODelegate
public CoreIODelegate()
-
-
Method Details
-
accept
protected boolean accept(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Description copied from class:PartialCoreIODelegateIf it returns true, it delegates marshalling toMarshallerRegistry.- Specified by:
acceptin classPartialCoreIODelegate
-
getRenderingContextOrFail
-
configure
public boolean configure(jakarta.ws.rs.core.FeatureContext context) - Specified by:
configurein interfacejakarta.ws.rs.core.Feature
-