Class PluggableUploadFileServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.pentaho.platform.web.servlet.PluggableUploadFileServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class PluggableUploadFileServlet extends jakarta.servlet.http.HttpServlet implements jakarta.servlet.Servlet
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    getDispatchKey(jakarta.servlet.http.HttpServletRequest request)
    Returns the dispatch key for this request.
    getUploaderBean(String uploaderBeanId, jakarta.servlet.http.HttpServletResponse response)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.Servlet

    destroy, getServletConfig, getServletInfo, init, service
  • Constructor Details

    • PluggableUploadFileServlet

      public PluggableUploadFileServlet()
  • Method Details

    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getUploaderBean

      protected IUploadFileServletPlugin getUploaderBean(String uploaderBeanId, jakarta.servlet.http.HttpServletResponse response) throws org.pentaho.platform.api.engine.PluginBeanException, IOException
      Throws:
      org.pentaho.platform.api.engine.PluginBeanException
      IOException
    • getDispatchKey

      public String getDispatchKey(jakarta.servlet.http.HttpServletRequest request)
      Returns the dispatch key for this request. This name is the part of the request path beyond the servlet base path. I.e. if the PluggableUploadFileServlet is mapped to the "/upload" context in web.xml, then this method will return "testuploader" given a request to "http://localhost:8080/pentaho/upload/testuploader".
      Returns:
      the part of the request url used to dispatch the request