org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonObjectWriter
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonObjectWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
public class JsonObjectWriter
- extends Object
- implements javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
- Author:
- matic
Method Summary |
long |
getSize(net.sf.json.JSONObject t,
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)
|
void |
writeTo(net.sf.json.JSONObject t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
JsonObjectWriter
public JsonObjectWriter()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
getSize
public long getSize(net.sf.json.JSONObject t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
writeTo
public void writeTo(net.sf.json.JSONObject t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<net.sf.json.JSONObject>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.