Class ServletContextHandler.Context

    • Constructor Detail

      • Context

        public Context()
    • Method Detail

      • getNamedDispatcher

        public javax.servlet.RequestDispatcher getNamedDispatcher​(java.lang.String name)
        Specified by:
        getNamedDispatcher in interface javax.servlet.ServletContext
        Overrides:
        getNamedDispatcher in class ContextHandler.StaticContext
      • addFilter

        public javax.servlet.FilterRegistration.Dynamic addFilter​(java.lang.String filterName,
                                                                  java.lang.Class<? extends javax.servlet.Filter> filterClass)
        Specified by:
        addFilter in interface javax.servlet.ServletContext
        Overrides:
        addFilter in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • addFilter

        public javax.servlet.FilterRegistration.Dynamic addFilter​(java.lang.String filterName,
                                                                  java.lang.String className)
        Specified by:
        addFilter in interface javax.servlet.ServletContext
        Overrides:
        addFilter in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • addFilter

        public javax.servlet.FilterRegistration.Dynamic addFilter​(java.lang.String filterName,
                                                                  javax.servlet.Filter filter)
        Specified by:
        addFilter in interface javax.servlet.ServletContext
        Overrides:
        addFilter in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • addServlet

        public javax.servlet.ServletRegistration.Dynamic addServlet​(java.lang.String servletName,
                                                                    java.lang.Class<? extends javax.servlet.Servlet> servletClass)
        Specified by:
        addServlet in interface javax.servlet.ServletContext
        Overrides:
        addServlet in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • addServlet

        public javax.servlet.ServletRegistration.Dynamic addServlet​(java.lang.String servletName,
                                                                    java.lang.String className)
        Specified by:
        addServlet in interface javax.servlet.ServletContext
        Overrides:
        addServlet in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • addServlet

        public javax.servlet.ServletRegistration.Dynamic addServlet​(java.lang.String servletName,
                                                                    javax.servlet.Servlet servlet)
        Specified by:
        addServlet in interface javax.servlet.ServletContext
        Overrides:
        addServlet in class ContextHandler.StaticContext
        Since:
        servlet-api-3.0
      • setInitParameter

        public boolean setInitParameter​(java.lang.String name,
                                        java.lang.String value)
        Specified by:
        setInitParameter in interface javax.servlet.ServletContext
        Overrides:
        setInitParameter in class ContextHandler.Context
      • createInstance

        protected <T> T createInstance​(java.lang.Class<T> clazz)
                                throws javax.servlet.ServletException
        Overrides:
        createInstance in class ContextHandler.StaticContext
        Throws:
        javax.servlet.ServletException
      • destroyFilter

        public <T extends javax.servlet.Filter> void destroyFilter​(T f)
      • destroyServlet

        public <T extends javax.servlet.Servlet> void destroyServlet​(T s)
      • getDefaultSessionTrackingModes

        public java.util.Set<javax.servlet.SessionTrackingMode> getDefaultSessionTrackingModes()
        Specified by:
        getDefaultSessionTrackingModes in interface javax.servlet.ServletContext
        Overrides:
        getDefaultSessionTrackingModes in class ContextHandler.StaticContext
      • getEffectiveSessionTrackingModes

        public java.util.Set<javax.servlet.SessionTrackingMode> getEffectiveSessionTrackingModes()
        Specified by:
        getEffectiveSessionTrackingModes in interface javax.servlet.ServletContext
        Overrides:
        getEffectiveSessionTrackingModes in class ContextHandler.StaticContext
      • getFilterRegistration

        public javax.servlet.FilterRegistration getFilterRegistration​(java.lang.String filterName)
        Specified by:
        getFilterRegistration in interface javax.servlet.ServletContext
        Overrides:
        getFilterRegistration in class ContextHandler.StaticContext
      • getFilterRegistrations

        public java.util.Map<java.lang.String,​? extends javax.servlet.FilterRegistration> getFilterRegistrations()
        Specified by:
        getFilterRegistrations in interface javax.servlet.ServletContext
        Overrides:
        getFilterRegistrations in class ContextHandler.StaticContext
      • getServletRegistration

        public javax.servlet.ServletRegistration getServletRegistration​(java.lang.String servletName)
        Specified by:
        getServletRegistration in interface javax.servlet.ServletContext
        Overrides:
        getServletRegistration in class ContextHandler.StaticContext
      • getServletRegistrations

        public java.util.Map<java.lang.String,​? extends javax.servlet.ServletRegistration> getServletRegistrations()
        Specified by:
        getServletRegistrations in interface javax.servlet.ServletContext
        Overrides:
        getServletRegistrations in class ContextHandler.StaticContext
      • setSessionTrackingModes

        public void setSessionTrackingModes​(java.util.Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
        Specified by:
        setSessionTrackingModes in interface javax.servlet.ServletContext
        Overrides:
        setSessionTrackingModes in class ContextHandler.StaticContext
      • addListener

        public void addListener​(java.lang.String className)
        Specified by:
        addListener in interface javax.servlet.ServletContext
        Overrides:
        addListener in class ContextHandler.Context
      • addListener

        public <T extends java.util.EventListener> void addListener​(T t)
        Specified by:
        addListener in interface javax.servlet.ServletContext
        Overrides:
        addListener in class ContextHandler.Context
      • addListener

        public void addListener​(java.lang.Class<? extends java.util.EventListener> listenerClass)
        Specified by:
        addListener in interface javax.servlet.ServletContext
        Overrides:
        addListener in class ContextHandler.Context
      • getJspConfigDescriptor

        public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()
        Specified by:
        getJspConfigDescriptor in interface javax.servlet.ServletContext
        Overrides:
        getJspConfigDescriptor in class ContextHandler.Context
      • declareRoles

        public void declareRoles​(java.lang.String... roleNames)
        Specified by:
        declareRoles in interface javax.servlet.ServletContext
        Overrides:
        declareRoles in class ContextHandler.Context