org.apache.cxf.jaxrs.provider
Class MultipartProvider
java.lang.Object
org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
org.apache.cxf.jaxrs.provider.MultipartProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
@Provider
public class MultipartProvider
- extends AbstractConfigurableProvider
- implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>, javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
|
Method Summary |
protected void |
checkContentLength()
|
long |
getSize(java.lang.Object t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
|
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)
|
void |
setMessageContext(MessageContext context)
|
void |
writeTo(java.lang.Object obj,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream os)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipartProvider
public MultipartProvider()
setMessageContext
public void setMessageContext(MessageContext context)
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,
javax.ws.rs.core.MediaType mt)
- Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
checkContentLength
protected void checkContentLength()
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
getSize
public long getSize(java.lang.Object t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
writeTo
public void writeTo(java.lang.Object obj,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream os)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
Apache CXF