Class ServletContextHandler.Context

All Implemented Interfaces:
javax.servlet.ServletContext, Attributes, Dumpable
Direct Known Subclasses:
WebAppContext.Context
Enclosing class:
ServletContextHandler

public class ServletContextHandler.Context extends ContextHandler.Context
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • getNamedDispatcher

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

      public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, 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(String filterName, 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(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(String servletName, 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(String servletName, 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(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
    • addJspFile

      public javax.servlet.ServletRegistration.Dynamic addJspFile(String servletName, String jspFile)
      Specified by:
      addJspFile in interface javax.servlet.ServletContext
      Overrides:
      addJspFile in class ContextHandler.StaticContext
    • getInitParameter

      public String getInitParameter(String name)
      Specified by:
      getInitParameter in interface javax.servlet.ServletContext
      Overrides:
      getInitParameter in class ContextHandler.Context
    • setInitParameter

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

      public <T> T createInstance(Class<T> clazz) throws javax.servlet.ServletException
      Overrides:
      createInstance in class ContextHandler.StaticContext
      Throws:
      javax.servlet.ServletException
    • createInstance

      public <T> T createInstance(BaseHolder<T> holder) throws javax.servlet.ServletException
      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 Set<javax.servlet.SessionTrackingMode> getDefaultSessionTrackingModes()
      Specified by:
      getDefaultSessionTrackingModes in interface javax.servlet.ServletContext
      Overrides:
      getDefaultSessionTrackingModes in class ContextHandler.StaticContext
    • getEffectiveSessionTrackingModes

      public 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(String filterName)
      Specified by:
      getFilterRegistration in interface javax.servlet.ServletContext
      Overrides:
      getFilterRegistration in class ContextHandler.StaticContext
    • getFilterRegistrations

      public Map<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(String servletName)
      Specified by:
      getServletRegistration in interface javax.servlet.ServletContext
      Overrides:
      getServletRegistration in class ContextHandler.StaticContext
    • getServletRegistrations

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

      public javax.servlet.SessionCookieConfig getSessionCookieConfig()
      Specified by:
      getSessionCookieConfig in interface javax.servlet.ServletContext
      Overrides:
      getSessionCookieConfig in class ContextHandler.StaticContext
    • setSessionTrackingModes

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

      public int getSessionTimeout()
      Specified by:
      getSessionTimeout in interface javax.servlet.ServletContext
      Overrides:
      getSessionTimeout in class ContextHandler.StaticContext
    • setSessionTimeout

      public void setSessionTimeout(int sessionTimeout)
      Specified by:
      setSessionTimeout in interface javax.servlet.ServletContext
      Overrides:
      setSessionTimeout in class ContextHandler.StaticContext
    • createServlet

      public <T extends javax.servlet.Servlet> T createServlet(Class<T> clazz) throws javax.servlet.ServletException
      Specified by:
      createServlet in interface javax.servlet.ServletContext
      Overrides:
      createServlet in class ContextHandler.StaticContext
      Throws:
      javax.servlet.ServletException
    • createFilter

      public <T extends javax.servlet.Filter> T createFilter(Class<T> clazz) throws javax.servlet.ServletException
      Specified by:
      createFilter in interface javax.servlet.ServletContext
      Overrides:
      createFilter in class ContextHandler.StaticContext
      Throws:
      javax.servlet.ServletException
    • createListener

      public <T extends EventListener> T createListener(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
    • addListener

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

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

      public void addListener(Class<? extends 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
    • setJspConfigDescriptor

      public void setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor d)
      Overrides:
      setJspConfigDescriptor in class ContextHandler.Context
    • declareRoles

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

      public String getRequestCharacterEncoding()
      Specified by:
      getRequestCharacterEncoding in interface javax.servlet.ServletContext
      Overrides:
      getRequestCharacterEncoding in class ContextHandler.StaticContext
    • setRequestCharacterEncoding

      public void setRequestCharacterEncoding(String encoding)
      Specified by:
      setRequestCharacterEncoding in interface javax.servlet.ServletContext
      Overrides:
      setRequestCharacterEncoding in class ContextHandler.StaticContext
    • getResponseCharacterEncoding

      public String getResponseCharacterEncoding()
      Specified by:
      getResponseCharacterEncoding in interface javax.servlet.ServletContext
      Overrides:
      getResponseCharacterEncoding in class ContextHandler.StaticContext
    • setResponseCharacterEncoding

      public void setResponseCharacterEncoding(String encoding)
      Specified by:
      setResponseCharacterEncoding in interface javax.servlet.ServletContext
      Overrides:
      setResponseCharacterEncoding in class ContextHandler.StaticContext