Class EntryWriter
- java.lang.Object
-
- com.tangosol.coherence.rest.providers.EntryWriter
-
-
Constructor Summary
Constructors Constructor Description EntryWriter()Default constructor.EntryWriter(MarshallerRegistry registry)Construct an EntryWriter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(Object entry, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)voidwriteTo(Object oEntry, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream)
-
-
-
Constructor Detail
-
EntryWriter
public EntryWriter()
Default constructor.
-
EntryWriter
public EntryWriter(MarshallerRegistry registry)
Construct an EntryWriter 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:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
getSize
public long getSize(Object entry, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object oEntry, 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:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<Object>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-