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-RSMessageBodyWriter
that try to delegate the marshalling to all nuxeo-core-ioWriter
andReader
. This singleton is also registering an injection ofRenderingContext
- Since:
- 11.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
CONTENT_TYPE, NUXEO_ENTITY
-
-
Constructor Summary
Constructors Constructor Description CoreIODelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accept(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
If it returns true, it delegates marshalling toMarshallerRegistry
.com.sun.jersey.spi.inject.Injectable
getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic, javax.ws.rs.core.Context a, Type c)
com.sun.jersey.core.spi.component.ComponentScope
getScope()
RenderingContext
getValue()
-
Methods inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
getSize, isReadable, isWriteable, readFrom, writeTo
-
-
-
-
Method Detail
-
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 toMarshallerRegistry
.- Specified by:
accept
in classPartialCoreIODelegate
-
getValue
public RenderingContext getValue()
- Specified by:
getValue
in interfacecom.sun.jersey.spi.inject.Injectable<RenderingContext>
-
getScope
public com.sun.jersey.core.spi.component.ComponentScope getScope()
- Specified by:
getScope
in interfacecom.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>
-
-