java.lang.Object
cloud.piranha.core.impl.DefaultMultiPartManager
- All Implemented Interfaces:
MultiPartManager
The default MultiPartManager.
This MultiPartManager is a no-op.
- 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
-
DefaultMultiPartManager
public DefaultMultiPartManager()
-
-
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.
-
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.
-