Class PluginServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jivesoftware.admin.servlet.PluginServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet("/plugin-admin.jsp") public class PluginServlet extends javax.servlet.http.HttpServlet
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SystemProperty<Boolean>
    Determines if the content-type of uploaded plugin files is verified.
    static final SystemProperty<List<String>>
    Defines the expected content-type of uploaded plugin files.
    static final SystemProperty<Boolean>
    Defines if the admin console can be used to upload plugins.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doCommon(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    Methods inherited from class javax.servlet.http.HttpServlet

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

    Methods inherited from class javax.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PLUGINS_UPLOAD_ENABLED

      public static final SystemProperty<Boolean> PLUGINS_UPLOAD_ENABLED
      Defines if the admin console can be used to upload plugins.
    • CONTENTTYPE_CHECK_ENABLED

      public static final SystemProperty<Boolean> CONTENTTYPE_CHECK_ENABLED
      Determines if the content-type of uploaded plugin files is verified.
    • EXPECTED_CONTENTTYPE

      public static final SystemProperty<List<String>> EXPECTED_CONTENTTYPE
      Defines the expected content-type of uploaded plugin files.
  • Constructor Details

    • PluginServlet

      public PluginServlet()
  • Method Details

    • doCommon

      protected void doCommon(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • doGet

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

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