Class AppointmentMessageBodyReader
java.lang.Object
org.apache.openmeetings.webservice.util.AppointmentMessageBodyReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<AppointmentDTO>
@Provider
@Consumes("application/json")
public class AppointmentMessageBodyReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<AppointmentDTO>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom
(Class<AppointmentDTO> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
AppointmentMessageBodyReader
public AppointmentMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<AppointmentDTO>
-
readFrom
public AppointmentDTO readFrom(Class<AppointmentDTO> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<AppointmentDTO>
- Throws:
IOException
-