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 boolean
accept
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) If it returns true, it delegates marshalling toMarshallerRegistry
.boolean
configure
(jakarta.ws.rs.core.FeatureContext context) protected RenderingContext
Methods 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:PartialCoreIODelegate
If it returns true, it delegates marshalling toMarshallerRegistry
.- Specified by:
accept
in classPartialCoreIODelegate
-
getRenderingContextOrFail
-
configure
public boolean configure(jakarta.ws.rs.core.FeatureContext context) - Specified by:
configure
in interfacejakarta.ws.rs.core.Feature
-