Class UserMessageBodyWriter
java.lang.Object
org.apache.openmeetings.webservice.util.UserMessageBodyWriter
- All Implemented Interfaces:
MessageBodyWriter<UserDTO>
@Provider
@Produces("application/json")
public class UserMessageBodyWriter
extends Object
implements MessageBodyWriter<UserDTO>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanisWriteable(Class<?> clazz, Type type, Annotation[] annotations, MediaType mediaType) voidwriteTo(UserDTO t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream out)
-
Constructor Details
-
UserMessageBodyWriter
public UserMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteablein interfaceMessageBodyWriter<UserDTO>
-
getSize
public long getSize(UserDTO t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
getSizein interfaceMessageBodyWriter<UserDTO>
-
writeTo
public void writeTo(UserDTO t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream out) throws IOException- Specified by:
writeToin interfaceMessageBodyWriter<UserDTO>- Throws:
IOException
-