@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) @Provider public class JSONObjectMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONObject>
Constructor and Description |
---|
JSONObjectMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(org.json.simple.JSONObject jsonObject,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(org.json.simple.JSONObject value,
Class<?> type,
Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream out) |
public long getSize(org.json.simple.JSONObject jsonObject, Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONObject>
public boolean isWriteable(Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONObject>
public void writeTo(org.json.simple.JSONObject value, Class<?> type, Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream out) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<org.json.simple.JSONObject>
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.