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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(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.InjectablegetInjectable(com.sun.jersey.core.spi.component.ComponentContext ic, javax.ws.rs.core.Context a, Type c) com.sun.jersey.core.spi.component.ComponentScopegetScope()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:PartialCoreIODelegateIf it returns true, it delegates marshalling toMarshallerRegistry.- Specified by:
acceptin classPartialCoreIODelegate
-
getValue
- Specified by:
getValuein interfacecom.sun.jersey.spi.inject.Injectable<RenderingContext>
-
getScope
public com.sun.jersey.core.spi.component.ComponentScope getScope()- Specified by:
getScopein 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:
getInjectablein interfacecom.sun.jersey.spi.inject.InjectableProvider<javax.ws.rs.core.Context,Type>
-