Package org.nuxeo.ecm.automation.io.rest
Class JsonAdapterWriter
java.lang.Object
org.nuxeo.ecm.automation.io.rest.JsonAdapterWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>
@Singleton
@Provider
@Produces("application/json")
public class JsonAdapterWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>
- Author:
- bstefanescu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(JsonAdapter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4, jakarta.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream arg6)
-
Constructor Details
-
JsonAdapterWriter
public JsonAdapterWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>
-
getSize
public long getSize(JsonAdapter t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>
-
writeTo
public void writeTo(JsonAdapter arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4, jakarta.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream arg6) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<JsonAdapter>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-