Class ApplicationMessageBodyReader
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.util.ApplicationMessageBodyReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<ApplicationImpl>
@Provider
public class ApplicationMessageBodyReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<ApplicationImpl>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom
(Class<ApplicationImpl> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
ApplicationMessageBodyReader
public ApplicationMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<ApplicationImpl>
-
readFrom
public ApplicationImpl readFrom(Class<ApplicationImpl> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<ApplicationImpl>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-