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