Class JsonPrimitiveWriter
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.JsonPrimitiveWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) booleanisWriteable(Class<?> typeClass, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) voidwriteTo(Object value, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream out)
-
Constructor Details
-
JsonPrimitiveWriter
public JsonPrimitiveWriter()
-
-
Method Details
-
getSize
public long getSize(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
isWriteable
public boolean isWriteable(Class<?> typeClass, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object value, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream out) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<Object>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-