@Provider @Produces(value="application/xml") public class XMLExampleProvider extends AbstractExampleProvider implements javax.ws.rs.ext.MessageBodyWriter<Example>
| Constructor and Description |
|---|
XMLExampleProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(Example data,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream out) |
getSize, setPrettyPrintpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Example>isWriteable in class AbstractExampleProviderpublic void writeTo(Example data, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream out) throws IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Example>IOExceptionCopyright © 2019. All rights reserved.