@Provider @Produces(value="application/json") public class JsonExampleProvider extends AbstractExampleProvider implements javax.ws.rs.ext.MessageBodyWriter<Example>
| Constructor and Description |
|---|
JsonExampleProvider() |
| Modifier and Type | Method and Description |
|---|---|
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, isWriteable, setPrettyPrintpublic 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.