Class DefaultMultiPartManager

java.lang.Object
cloud.piranha.core.impl.DefaultMultiPartManager
All Implemented Interfaces:
MultiPartManager

public class DefaultMultiPartManager extends Object implements MultiPartManager
The default MultiPartManager.

This MultiPartManager is a no-op.

Author:
Manfred Riem ([email protected])
  • 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 interface MultiPartManager
      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 interface MultiPartManager
      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.