Package cloud.piranha.upload.apache
Class ApacheMultiPartManager
- java.lang.Object
-
- cloud.piranha.upload.apache.ApacheMultiPartManager
-
- All Implemented Interfaces:
MultiPartManager
public class ApacheMultiPartManager extends Object implements MultiPartManager
The ApacheMultiPartManager.The ApacheMultiPartManager implements the MultiPartManager API that delivers file upload functionality to a web application by delegating to Apache Commons File Upload.
- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description ApacheMultiPartManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Part
getPart(WebApplication webApplication, WebApplicationRequest request, String name)
Get the part.Collection<Part>
getParts(WebApplication webApplication, WebApplicationRequest request)
Get the parts.
-
-
-
Method Detail
-
getParts
public Collection<Part> getParts(WebApplication webApplication, WebApplicationRequest request) throws ServletException
Description copied from interface:MultiPartManager
Get the parts.- Specified by:
getParts
in interfaceMultiPartManager
- Parameters:
webApplication
- the web application.request
- the web application request.- Returns:
- the parts.
- Throws:
ServletException
- when the request is not a multipart/form-data request.- See Also:
MultiPartManager.getParts(cloud.piranha.webapp.api.WebApplication, cloud.piranha.webapp.api.WebApplicationRequest)
-
getPart
public Part getPart(WebApplication webApplication, WebApplicationRequest request, String name) throws ServletException
Description copied from interface:MultiPartManager
Get the part.- Specified by:
getPart
in interfaceMultiPartManager
- Parameters:
webApplication
- the web application.request
- the web application request.name
- the name of the part.- Returns:
- the part, or null if not found.
- Throws:
ServletException
- when the request is not a multipart/form-data request.- See Also:
MultiPartManager.getPart(cloud.piranha.webapp.api.WebApplication, cloud.piranha.webapp.api.WebApplicationRequest, java.lang.String)
-
-