@Provider
@Produces(value={"application/xml","application/json"})
public class EntryWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<Object>
| Constructor and Description |
|---|
EntryWriter()
Default constructor.
|
EntryWriter(MarshallerRegistry registry)
Construct an EntryWriter instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Object entry,
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 oEntry,
Class<?> clz,
Type type,
Annotation[] aAnnotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream stream) |
public EntryWriter()
public EntryWriter(MarshallerRegistry registry)
registry - marshaller registry to usepublic boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>public long getSize(Object entry, Class<?> clz, Type type, Annotation[] aAnnotation, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>IOExceptionjavax.ws.rs.WebApplicationException