Package cloud.piranha.webapp.impl
Class DefaultMultiPartManager
- java.lang.Object
-
- cloud.piranha.webapp.impl.DefaultMultiPartManager
-
- All Implemented Interfaces:
MultiPartManager
public class DefaultMultiPartManager extends Object implements MultiPartManager
The default MultiPartManager.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DefaultMultiPartManager()
-
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
Get the parts.- Specified by:
getParts
in interfaceMultiPartManager
- Parameters:
webApplication
- the web application.request
- the request.- Returns:
- the parts.
- Throws:
ServletException
- when the request is not a multipart/form-data request.
-
getPart
public Part getPart(WebApplication webApplication, WebApplicationRequest request, String name) throws ServletException
Get the part.- Specified by:
getPart
in interfaceMultiPartManager
- Parameters:
webApplication
- the web application.request
- the 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.
-
-