Class CoreIODelegate

java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.CoreIODelegate
All Implemented Interfaces:
com.sun.jersey.spi.inject.Injectable<RenderingContext>, com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>, javax.ws.rs.ext.MessageBodyReader<Object>, javax.ws.rs.ext.MessageBodyWriter<Object>

@Provider public class CoreIODelegate extends PartialCoreIODelegate implements com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>, com.sun.jersey.spi.inject.Injectable<RenderingContext>
A JAX-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, javax.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
    • getValue

      public RenderingContext getValue()
      Specified by:
      getValue in interface com.sun.jersey.spi.inject.Injectable<RenderingContext>
    • getScope

      public com.sun.jersey.core.spi.component.ComponentScope getScope()
      Specified by:
      getScope in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>
    • getInjectable

      public com.sun.jersey.spi.inject.Injectable getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic, javax.ws.rs.core.Context a, Type c)
      Specified by:
      getInjectable in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>