Constructor and Description |
---|
JadexXMLBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(Object t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Get the size of the result.
|
boolean |
isWriteable(Class<?> type,
Type gtype,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediatype)
Test if the writer can handle the content.
|
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)
Write the object to the output stream.
|
public boolean isWriteable(Class<?> type, Type gtype, Annotation[] annotations, javax.ws.rs.core.MediaType mediatype)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
public 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>
IOException
javax.ws.rs.WebApplicationException
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>
Copyright © 2012. All Rights Reserved.