Interface DynamicServletContext

  • All Superinterfaces:
    javax.servlet.ServletContext
    All Known Implementing Classes:
    DeferredServletContext

    public interface DynamicServletContext
    extends javax.servlet.ServletContext
    An extension of ServletContext that adds methods to remove previously added servlets.
    • Field Summary

      • Fields inherited from interface javax.servlet.ServletContext

        ORDERED_LIBS, TEMPDIR
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean removeServlet​(String servletName)
      Removes the servlet with the designated name.
      • Methods inherited from interface javax.servlet.ServletContext

        addFilter, addFilter, addFilter, addJspFile, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestCharacterEncoding, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getResponseCharacterEncoding, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getSessionTimeout, getVirtualServerName, log, log, log, removeAttribute, setAttribute, setInitParameter, setRequestCharacterEncoding, setResponseCharacterEncoding, setSessionTimeout, setSessionTrackingModes
    • Method Detail

      • removeServlet

        boolean removeServlet​(String servletName)
        Removes the servlet with the designated name.
        Parameters:
        servletName - The name of the servlet which to remove.
        Returns:
        Whether a servlet of the designated name was registered and has been removed by this call.