org.apache.clerezza.triaxrs.providers.provided
Class JafMessageBodyReader<T>
java.lang.Object
org.apache.clerezza.triaxrs.providers.provided.JafMessageBodyReader<T>
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<T>
public class JafMessageBodyReader<T>
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<T>
This class wraps the Java Activation Framework functionality,
so it can be use as MessageBodyReader.
The function isReadable() is not supported, because
this provider can not be provided through the
ProvidersImpl class and therefore the function
is not needed.
- Author:
- mir
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JafMessageBodyReader
public JafMessageBodyReader()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
readFrom
public T readFrom(Class<T> 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 interface javax.ws.rs.ext.MessageBodyReader<T>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.