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
-
Field Summary
Fields inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
CONTENT_TYPE, NUXEO_ENTITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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()
getValue()
Methods inherited from class org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate
getSize, isReadable, isWriteable, readFrom, writeTo
-
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 toMarshallerRegistry
.- Specified by:
accept
in classPartialCoreIODelegate
-
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>
-
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 interfacecom.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,
Type>
-