com.atlassian.plugins.rest.common.multipart.jersey
Class MultipartFormMessageBodyReader

java.lang.Object
  extended by com.atlassian.plugins.rest.common.multipart.jersey.MultipartFormMessageBodyReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<MultipartForm>

@Provider
public class MultipartFormMessageBodyReader
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<MultipartForm>

Reads a multipart form data object

Since:
2.4

Constructor Summary
MultipartFormMessageBodyReader()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 MultipartForm readFrom(java.lang.Class<MultipartForm> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartFormMessageBodyReader

public MultipartFormMessageBodyReader()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<MultipartForm>

readFrom

public MultipartForm readFrom(java.lang.Class<MultipartForm> type,
                              java.lang.reflect.Type genericType,
                              java.lang.annotation.Annotation[] annotations,
                              javax.ws.rs.core.MediaType mediaType,
                              javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                              java.io.InputStream entityStream)
                       throws java.io.IOException,
                              javax.ws.rs.WebApplicationException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<MultipartForm>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2014 Atlassian. All Rights Reserved.