@Provider
@Produces(value={"application/json","application/xml","application/yaml"})
public abstract class AbstractExampleProvider
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<Example>
| Constructor and Description |
|---|
AbstractExampleProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Example data,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static void |
setPrettyPrint(boolean shouldPrettyPrint) |
public static void setPrettyPrint(boolean shouldPrettyPrint)
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Example>public long getSize(Example data, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Example>Copyright © 2019. All rights reserved.