@Provider public class JSONEntityProvider extends AbstractEntityProvider
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String | COPYRIGHT
IBM Copyright.
|
Constructor and Description |
---|
JSONEntityProvider() |
Modifier and Type | Method and Description |
---|---|
protected static boolean | isVerbose()
Determines if the REST response messages should be debug friendly.
|
void | writeTo(java.util.Map map, java.lang.Class<?> objectClass, java.lang.reflect.Type objectType, java.lang.annotation.Annotation[] resourceAnnotations, javax.ws.rs.core.MediaType responseMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> responseHttpHeaders, java.io.OutputStream responseOutputStream)
This method converts a Map to JSON.
|
protected static final java.lang.String COPYRIGHT
public void writeTo(java.util.Map map, java.lang.Class<?> objectClass, java.lang.reflect.Type objectType, java.lang.annotation.Annotation[] resourceAnnotations, javax.ws.rs.core.MediaType responseMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> responseHttpHeaders, java.io.OutputStream responseOutputStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
protected static boolean isVerbose()