com.atlassian.plugins.rest.common.multipart.fileupload
Class CommonsFileUploadMultipartHandler

java.lang.Object
  extended by com.atlassian.plugins.rest.common.multipart.fileupload.CommonsFileUploadMultipartHandler
All Implemented Interfaces:
MultipartHandler

public class CommonsFileUploadMultipartHandler
extends java.lang.Object
implements MultipartHandler


Constructor Summary
CommonsFileUploadMultipartHandler(long maxFileSize, long maxSize)
           
 
Method Summary
 FilePart getFilePart(javax.servlet.http.HttpServletRequest request, java.lang.String field)
          Get the first file part for the given field name from the request
 MultipartForm getForm(javax.servlet.http.HttpServletRequest request)
          Parse the multipart form from this request
 MultipartForm getForm(org.apache.commons.fileupload.RequestContext request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsFileUploadMultipartHandler

public CommonsFileUploadMultipartHandler(long maxFileSize,
                                         long maxSize)
Method Detail

getFilePart

public FilePart getFilePart(javax.servlet.http.HttpServletRequest request,
                            java.lang.String field)
Description copied from interface: MultipartHandler
Get the first file part for the given field name from the request

Specified by:
getFilePart in interface MultipartHandler
Parameters:
request - The request
field - The field name
Returns:
The first file part, or null if none was found

getForm

public MultipartForm getForm(javax.servlet.http.HttpServletRequest request)
Description copied from interface: MultipartHandler
Parse the multipart form from this request

Specified by:
getForm in interface MultipartHandler
Parameters:
request - The request to parse
Returns:
The form

getForm

public MultipartForm getForm(org.apache.commons.fileupload.RequestContext request)


Copyright © 2014 Atlassian. All Rights Reserved.