Class ObjectWriter
- java.lang.Object
-
- com.tangosol.coherence.rest.providers.ObjectWriter
-
-
Constructor Summary
Constructors Constructor Description ObjectWriter()
Default constructor.ObjectWriter(MarshallerRegistry registry)
Construct an ObjectWriter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
void
writeTo(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream)
-
-
-
Constructor Detail
-
ObjectWriter
public ObjectWriter()
Default constructor.
-
ObjectWriter
public ObjectWriter(MarshallerRegistry registry)
Construct an ObjectWriter instance.- Parameters:
registry
- marshaller registry to use
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
getSize
public long getSize(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-