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
  • 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 to MarshallerRegistry.
      Specified by:
      accept in class PartialCoreIODelegate
    • getRenderingContextOrFail

      protected RenderingContext getRenderingContextOrFail()
    • configure

      public boolean configure(jakarta.ws.rs.core.FeatureContext context)
      Specified by:
      configure in interface jakarta.ws.rs.core.Feature