Class JsonLoginInfoWriter
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.JsonLoginInfoWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<LoginInfo>
@Provider
public class JsonLoginInfoWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<LoginInfo>
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(LoginInfo arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) boolean
isWriteable
(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) void
writeTo
(LoginInfo login, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4, javax.ws.rs.core.MultivaluedMap<String, Object> arg5, OutputStream out)
-
Constructor Details
-
JsonLoginInfoWriter
public JsonLoginInfoWriter()
-
-
Method Details
-
getSize
public long getSize(LoginInfo arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<LoginInfo>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<LoginInfo>
-
writeTo
public void writeTo(LoginInfo login, 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:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<LoginInfo>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-