Class JsonAdapterWriter
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.JsonAdapterWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
@Provider public class JsonAdapterWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
- Author:
- bstefanescu
-
-
Constructor Summary
Constructors Constructor Description JsonAdapterWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(JsonAdapter 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(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream arg6)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
-
getSize
public long getSize(JsonAdapter t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
-
writeTo
public void writeTo(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String,Object> arg5, OutputStream arg6) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<JsonAdapter>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-