Interface WrapSupportingDynamic

  • All Superinterfaces:
    javax.servlet.Registration, javax.servlet.Registration.Dynamic, javax.servlet.ServletRegistration, javax.servlet.ServletRegistration.Dynamic
    All Known Implementing Classes:
    DeferredDynamic

    public interface WrapSupportingDynamic
    extends javax.servlet.ServletRegistration.Dynamic
    This Dynamic allows to set the servlet context to allow for wrapping servlet contexts when adding servlets. Wrapping servlet contexts need to exchange the servlet context within the Dynamic since the set servlet context does not know about the wrapping.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.servlet.Registration

        javax.servlet.Registration.Dynamic
      • Nested classes/interfaces inherited from interface javax.servlet.ServletRegistration

        javax.servlet.ServletRegistration.Dynamic
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setWrappingServletContext​(javax.servlet.ServletContext wrapped, javax.servlet.ServletContext wrapper)
      Set the designated wrapping servlet context if this Dynamic contains the designated wrapped servlet context.
      • Methods inherited from interface javax.servlet.Registration

        getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters
      • Methods inherited from interface javax.servlet.Registration.Dynamic

        setAsyncSupported
      • Methods inherited from interface javax.servlet.ServletRegistration

        addMapping, getMappings, getRunAsRole
      • Methods inherited from interface javax.servlet.ServletRegistration.Dynamic

        setLoadOnStartup, setMultipartConfig, setRunAsRole, setServletSecurity
    • Method Detail

      • setWrappingServletContext

        void setWrappingServletContext​(javax.servlet.ServletContext wrapped,
                                       javax.servlet.ServletContext wrapper)
        Set the designated wrapping servlet context if this Dynamic contains the designated wrapped servlet context.
        Parameters:
        wrapped - The wrapped servlet context this Dynamic may contain.
        wrapper - The wrapping servlet context to replace the servlet context within this Dynamic.