public abstract class PartialCoreIODelegate extends Object implements javax.ws.rs.ext.MessageBodyWriter<Object>, javax.ws.rs.ext.MessageBodyReader<Object>
MessageBodyWriter that delegate marshalling to all nuxeo-core-io Writer and
 Reader with conditions.| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONTENT_TYPE  | 
static String | 
NUXEO_ENTITY  | 
| Constructor and Description | 
|---|
PartialCoreIODelegate()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract boolean | 
accept(Class<?> type,
      Type genericType,
      Annotation[] annotations,
      javax.ws.rs.core.MediaType mediaType)
If it returns true, it delegates marshalling to  
MarshallerRegistry. | 
long | 
getSize(Object t,
       Class<?> type,
       Type genericType,
       Annotation[] annotations,
       javax.ws.rs.core.MediaType mediaType)  | 
boolean | 
isReadable(Class<?> type,
          Type genericType,
          Annotation[] annotations,
          javax.ws.rs.core.MediaType mediaType)  | 
boolean | 
isWriteable(Class<?> type,
           Type genericType,
           Annotation[] annotations,
           javax.ws.rs.core.MediaType mediaType)  | 
Object | 
readFrom(Class<Object> type,
        Type genericType,
        Annotation[] annotations,
        javax.ws.rs.core.MediaType mediaType,
        javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
        InputStream entityStream)  | 
void | 
writeTo(Object t,
       Class<?> type,
       Type genericType,
       Annotation[] annotations,
       javax.ws.rs.core.MediaType mediaType,
       javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
       OutputStream entityStream)  | 
public static final String CONTENT_TYPE
public static final String NUXEO_ENTITY
public PartialCoreIODelegate()
protected abstract boolean accept(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
MarshallerRegistry.public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Object>public long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>public final void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Object>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2019 Nuxeo. All rights reserved.