org.nuxeo.ecm.automation.server.jaxrs.io.writers
Class JsonAdapterWriter
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.writers.JsonAdapterWriter
- All Implemented Interfaces:
- MessageBodyWriter<JsonAdapter>
@Provider
public class JsonAdapterWriter
- extends Object
- implements MessageBodyWriter<JsonAdapter>
- Author:
- bstefanescu
Method Summary |
long |
getSize(JsonAdapter t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
void |
writeTo(JsonAdapter arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6)
|
JsonAdapterWriter
public JsonAdapterWriter()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
isWriteable
in interface MessageBodyWriter<JsonAdapter>
getSize
public long getSize(JsonAdapter t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
- Specified by:
getSize
in interface MessageBodyWriter<JsonAdapter>
writeTo
public void writeTo(JsonAdapter arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6)
throws IOException,
WebApplicationException
- Specified by:
writeTo
in interface MessageBodyWriter<JsonAdapter>
- Throws:
IOException
WebApplicationException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.