Class JsonCoreIODelegate

java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.JsonCoreIODelegate
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>

@Deprecated(since="11.1", forRemoval=true) @Provider public final class JsonCoreIODelegate extends PartialCoreIODelegate implements com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>, com.sun.jersey.spi.inject.Injectable<RenderingContext>
Deprecated, for removal: This API element is subject to removal in a future version.
since 11.1. Use CoreIODelegate instead.
A JAX-RS MessageBodyWriter that try to delegate the marshalling to all nuxeo-core-io Writer and Reader.
Since:
7.2
Implementation Note:
since 11.1, this singleton is also registering an injection of RenderingContext
  • Field Summary

    Fields inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate

    CONTENT_TYPE, NUXEO_ENTITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    accept(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
    Deprecated, for removal: This API element is subject to removal in a future version.
    If it returns true, it delegates marshalling to MarshallerRegistry.
    com.sun.jersey.spi.inject.Injectable
    getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic, javax.ws.rs.core.Context a, Type c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sun.jersey.core.spi.component.ComponentScope
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate

    getSize, isReadable, isWriteable, readFrom, writeTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonCoreIODelegate

      public JsonCoreIODelegate()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • accept

      protected boolean accept(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: PartialCoreIODelegate
      If it returns true, it delegates marshalling to MarshallerRegistry.
      Specified by:
      accept in class PartialCoreIODelegate
    • getValue

      public RenderingContext getValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getValue in interface com.sun.jersey.spi.inject.Injectable<RenderingContext>
      Since:
      11.1
    • getScope

      public com.sun.jersey.core.spi.component.ComponentScope getScope()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getScope in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>
      Since:
      11.1
    • 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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getInjectable in interface com.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>
      Since:
      11.1