Class AppointmentListMessageBodyWriter
java.lang.Object
org.apache.openmeetings.webservice.util.AppointmentListMessageBodyWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<List<AppointmentDTO>>
@Provider
@Produces("application/json")
public class AppointmentListMessageBodyWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<List<AppointmentDTO>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(List<AppointmentDTO> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) void
writeTo
(List<AppointmentDTO> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream out)
-
Constructor Details
-
AppointmentListMessageBodyWriter
public AppointmentListMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<List<AppointmentDTO>>
-
getSize
public long getSize(List<AppointmentDTO> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<List<AppointmentDTO>>
-
writeTo
public void writeTo(List<AppointmentDTO> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream out) throws IOException- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<List<AppointmentDTO>>
- Throws:
IOException
-