org.apache.cxf.jaxrs.provider
Class ActivationProvider
java.lang.Object
org.apache.cxf.jaxrs.provider.ActivationProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
@Provider
public class ActivationProvider
- extends java.lang.Object
- implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
|
Method Summary |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
|
java.lang.Object |
readFrom(java.lang.Class<java.lang.Object> c,
java.lang.reflect.Type t,
java.lang.annotation.Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
java.io.InputStream is)
|
void |
setAttachmentDirectory(java.lang.String dir)
|
void |
setAttachmentThreshold(java.lang.String threshold)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActivationProvider
public ActivationProvider()
setAttachmentDirectory
public void setAttachmentDirectory(java.lang.String dir)
setAttachmentThreshold
public void setAttachmentThreshold(java.lang.String threshold)
isReadable
public boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
- Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
readFrom
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> c,
java.lang.reflect.Type t,
java.lang.annotation.Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
java.io.InputStream is)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
Apache CXF