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