Class ApacheMultiPartManager
java.lang.Object
cloud.piranha.extension.apache.fileupload.ApacheMultiPartManager
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.Part
getPart
(WebApplication webApplication, WebApplicationRequest request, String name) Get the part.Collection<jakarta.servlet.http.Part>
getParts
(WebApplication webApplication, WebApplicationRequest request) Get the parts.
-
Constructor Details
-
ApacheMultiPartManager
public ApacheMultiPartManager()
-
-
Method Details
-
getParts
public Collection<jakarta.servlet.http.Part> getParts(WebApplication webApplication, WebApplicationRequest request) throws jakarta.servlet.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:
jakarta.servlet.ServletException
- when the request is not a multipart/form-data request.- See Also:
-
getPart
public jakarta.servlet.http.Part getPart(WebApplication webApplication, WebApplicationRequest request, String name) throws jakarta.servlet.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:
jakarta.servlet.ServletException
- when the request is not a multipart/form-data request.- See Also:
-