Class ServletContextHandler

    • Method Detail

      • getDefaultSecurityHandlerClass

        public java.lang.Class<? extends SecurityHandler> getDefaultSecurityHandlerClass()
        Deprecated.
        Get the defaultSecurityHandlerClass.
        Returns:
        the defaultSecurityHandlerClass
      • setDefaultSecurityHandlerClass

        public void setDefaultSecurityHandlerClass​(java.lang.Class<? extends SecurityHandler> defaultSecurityHandlerClass)
        Deprecated.
        Set the defaultSecurityHandlerClass.
        Parameters:
        defaultSecurityHandlerClass - the defaultSecurityHandlerClass to set
      • addServlet

        public ServletHolder addServlet​(java.lang.String className,
                                        java.lang.String pathSpec)
        Deprecated.
        Convenience method to add a servlet.
        Parameters:
        className - the servlet class name
        pathSpec - the path spec to map servlet to
        Returns:
        the ServletHolder for the added servlet
      • addServlet

        public ServletHolder addServlet​(java.lang.Class<? extends Servlet> servlet,
                                        java.lang.String pathSpec)
        Deprecated.
        Convenience method to add a servlet.
        Parameters:
        servlet - the servlet class
        pathSpec - the path spec to map servlet to
        Returns:
        the ServletHolder for the added servlet
      • addServlet

        public void addServlet​(ServletHolder servlet,
                               java.lang.String pathSpec)
        Deprecated.
        Convenience method to add a servlet.
        Parameters:
        servlet - the servlet holder
        pathSpec - the path spec
      • addFilter

        public void addFilter​(FilterHolder holder,
                              java.lang.String pathSpec,
                              java.util.EnumSet<DispatcherType> dispatches)
        Deprecated.
        Convenience method to add a filter
        Parameters:
        holder - the filter holder
        pathSpec - the path spec
        dispatches - the dispatcher types for this filter
      • addFilter

        public FilterHolder addFilter​(java.lang.Class<? extends Filter> filterClass,
                                      java.lang.String pathSpec,
                                      java.util.EnumSet<DispatcherType> dispatches)
        Deprecated.
        Convenience method to add a filter
        Parameters:
        filterClass - the filter class
        pathSpec - the path spec
        dispatches - the dispatcher types for this filter
        Returns:
        the FilterHolder that was created
      • addFilter

        public FilterHolder addFilter​(java.lang.String filterClass,
                                      java.lang.String pathSpec,
                                      java.util.EnumSet<DispatcherType> dispatches)
        Deprecated.
        Convenience method to add a filter
        Parameters:
        filterClass - the filter class name
        pathSpec - the path spec
        dispatches - the dispatcher types for this filter
        Returns:
        the FilterHolder that was created
      • setServletSecurity

        public java.util.Set<java.lang.String> setServletSecurity​(ServletRegistration.Dynamic registration,
                                                                  ServletSecurityElement servletSecurityElement)
        Deprecated.
        Delegate for ServletRegistration.Dynamic.setServletSecurity method
        Parameters:
        registration - ServletRegistration.Dynamic instance that setServletSecurity was called on
        servletSecurityElement - new security info
        Returns:
        the set of exact URL mappings currently associated with the registration that are also present in the web.xml security constraints and thus will be unaffected by this call.
      • setSessionHandler

        public void setSessionHandler​(SessionHandler sessionHandler)
        Deprecated.
        Parameters:
        sessionHandler - The sessionHandler to set.
      • setSecurityHandler

        public void setSecurityHandler​(SecurityHandler securityHandler)
        Deprecated.
        Parameters:
        securityHandler - The SecurityHandler to set on this context.
      • setGzipHandler

        public void setGzipHandler​(GzipHandler gzipHandler)
        Deprecated.
        Parameters:
        gzipHandler - The GzipHandler to set on this context.
      • setServletHandler

        public void setServletHandler​(ServletHandler servletHandler)
        Deprecated.
        Parameters:
        servletHandler - The servletHandler to set.
      • insertHandler

        public void insertHandler​(HandlerWrapper handler)
        Deprecated.
        Insert a HandlerWrapper before the first Session,Security or ServletHandler but after any other HandlerWrappers.
        Overrides:
        insertHandler in class HandlerWrapper
        Parameters:
        handler - the wrapper to insert
      • getObjectFactory

        public DecoratedObjectFactory getObjectFactory()
        Deprecated.
        The DecoratedObjectFactory for use by IoC containers (weld / spring / etc)
        Returns:
        The DecoratedObjectFactory