Class ContextHandler.Context

    • Field Detail

      • _enabled

        protected boolean _enabled
      • _extendedListenerTypes

        protected boolean _extendedListenerTypes
    • Constructor Detail

      • Context

        protected Context()
    • Method Detail

      • getContext

        public javax.servlet.ServletContext getContext​(java.lang.String uripath)
        Specified by:
        getContext in interface javax.servlet.ServletContext
        Overrides:
        getContext in class ContextHandler.StaticContext
      • getMimeType

        public java.lang.String getMimeType​(java.lang.String file)
        Specified by:
        getMimeType in interface javax.servlet.ServletContext
        Overrides:
        getMimeType in class ContextHandler.StaticContext
      • getRequestDispatcher

        public javax.servlet.RequestDispatcher getRequestDispatcher​(java.lang.String uriInContext)
        Specified by:
        getRequestDispatcher in interface javax.servlet.ServletContext
        Overrides:
        getRequestDispatcher in class ContextHandler.StaticContext
      • getRealPath

        public java.lang.String getRealPath​(java.lang.String path)
        Specified by:
        getRealPath in interface javax.servlet.ServletContext
        Overrides:
        getRealPath in class ContextHandler.StaticContext
      • getResource

        public java.net.URL getResource​(java.lang.String path)
                                 throws java.net.MalformedURLException
        Specified by:
        getResource in interface javax.servlet.ServletContext
        Overrides:
        getResource in class ContextHandler.StaticContext
        Throws:
        java.net.MalformedURLException
      • getResourceAsStream

        public java.io.InputStream getResourceAsStream​(java.lang.String path)
        Specified by:
        getResourceAsStream in interface javax.servlet.ServletContext
        Overrides:
        getResourceAsStream in class ContextHandler.StaticContext
      • getResourcePaths

        public java.util.Set<java.lang.String> getResourcePaths​(java.lang.String path)
        Specified by:
        getResourcePaths in interface javax.servlet.ServletContext
        Overrides:
        getResourcePaths in class ContextHandler.StaticContext
      • log

        public void log​(java.lang.Exception exception,
                        java.lang.String msg)
        Specified by:
        log in interface javax.servlet.ServletContext
        Overrides:
        log in class ContextHandler.StaticContext
      • log

        public void log​(java.lang.String msg)
        Specified by:
        log in interface javax.servlet.ServletContext
        Overrides:
        log in class ContextHandler.StaticContext
      • log

        public void log​(java.lang.String message,
                        java.lang.Throwable throwable)
        Specified by:
        log in interface javax.servlet.ServletContext
        Overrides:
        log in class ContextHandler.StaticContext
      • getInitParameter

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

        public java.util.Enumeration<java.lang.String> getInitParameterNames()
        Specified by:
        getInitParameterNames in interface javax.servlet.ServletContext
        Overrides:
        getInitParameterNames in class ContextHandler.StaticContext
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface Attributes
        Specified by:
        getAttribute in interface javax.servlet.ServletContext
        Overrides:
        getAttribute in class AttributesMap
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        setAttribute in interface Attributes
        Specified by:
        setAttribute in interface javax.servlet.ServletContext
        Overrides:
        setAttribute in class AttributesMap
      • 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.StaticContext
      • addListener

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

        public <T extends java.util.EventListener> void addListener​(T t)
        Specified by:
        addListener in interface javax.servlet.ServletContext
        Overrides:
        addListener in class ContextHandler.StaticContext
      • 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.StaticContext
      • createListener

        public <T extends java.util.EventListener> T createListener​(java.lang.Class<T> clazz)
                                                             throws javax.servlet.ServletException
        Specified by:
        createListener in interface javax.servlet.ServletContext
        Overrides:
        createListener in class ContextHandler.StaticContext
        Throws:
        javax.servlet.ServletException
      • checkListener

        public void checkListener​(java.lang.Class<? extends java.util.EventListener> listener)
                           throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • setExtendedListenerTypes

        public void setExtendedListenerTypes​(boolean extended)
      • isExtendedListenerTypes

        public boolean isExtendedListenerTypes()
      • getJspConfigDescriptor

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

        public void setJspConfigDescriptor​(javax.servlet.descriptor.JspConfigDescriptor d)
      • declareRoles

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

        public void setEnabled​(boolean enabled)
      • isEnabled

        public boolean isEnabled()
      • createInstance

        public <T> T createInstance​(java.lang.Class<T> clazz)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception