public class ContextHandler.Context extends Object implements ServletContext
A partial implementation of ServletContext. A complete implementation is provided by the derived ContextHandler.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_enabled |
protected int |
_majorVersion |
protected int |
_minorVersion |
| Modifier | Constructor and Description |
|---|---|
protected |
ContextHandler.Context() |
protected int _majorVersion
protected int _minorVersion
protected boolean _enabled
public ContextHandler getContextHandler()
public ServletContext getContext(String uripath)
getContext in interface ServletContextpublic int getMajorVersion()
getMajorVersion in interface ServletContextpublic String getMimeType(String file)
getMimeType in interface ServletContextpublic int getMinorVersion()
getMinorVersion in interface ServletContextpublic RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher in interface ServletContextpublic RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher in interface ServletContextpublic String getRealPath(String path)
getRealPath in interface ServletContextpublic URL getResource(String path) throws MalformedURLException
getResource in interface ServletContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface ServletContextpublic Set getResourcePaths(String path)
getResourcePaths in interface ServletContextpublic String getServerInfo()
getServerInfo in interface ServletContext@Deprecated public Servlet getServlet(String name) throws ServletException
getServlet in interface ServletContextServletException@Deprecated public Enumeration getServletNames()
getServletNames in interface ServletContext@Deprecated public Enumeration getServlets()
getServlets in interface ServletContextpublic void log(Exception exception, String msg)
log in interface ServletContextpublic void log(String msg)
log in interface ServletContextpublic void log(String message, Throwable throwable)
log in interface ServletContextpublic String getInitParameter(String name)
getInitParameter in interface ServletContextpublic Enumeration getInitParameterNames()
getInitParameterNames in interface ServletContextpublic Object getAttribute(String name)
getAttribute in interface ServletContextpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletContextpublic void setAttribute(String name, Object value)
setAttribute in interface ServletContextpublic void removeAttribute(String name)
removeAttribute in interface ServletContextpublic String getServletContextName()
getServletContextName in interface ServletContextpublic String getContextPath()
getContextPath in interface ServletContextpublic FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass)
public FilterRegistration.Dynamic addFilter(String filterName, Filter filter)
public FilterRegistration.Dynamic addFilter(String filterName, String className)
public ServletRegistration.Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass)
public ServletRegistration.Dynamic addServlet(String servletName, Servlet servlet)
public ServletRegistration.Dynamic addServlet(String servletName, String className)
public <T extends Filter> T createFilter(Class<T> c) throws ServletException
ServletExceptionpublic <T extends Servlet> T createServlet(Class<T> c) throws ServletException
ServletExceptionpublic Set<SessionTrackingMode> getDefaultSessionTrackingModes()
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
public FilterRegistration getFilterRegistration(String filterName)
public Map<String,? extends FilterRegistration> getFilterRegistrations()
public ServletRegistration getServletRegistration(String servletName)
public Map<String,? extends ServletRegistration> getServletRegistrations()
public SessionCookieConfig getSessionCookieConfig()
public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes)
public void addListener(String className)
public <T extends EventListener> void addListener(T t)
public void addListener(Class<? extends EventListener> listenerClass)
public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
ServletExceptionpublic ClassLoader getClassLoader()
public int getEffectiveMajorVersion()
public int getEffectiveMinorVersion()
public void setEffectiveMajorVersion(int v)
public void setEffectiveMinorVersion(int v)
public JspConfigDescriptor getJspConfigDescriptor()
public void setJspConfigDescriptor(JspConfigDescriptor d)
public void declareRoles(String... roleNames)
public void setEnabled(boolean enabled)
public boolean isEnabled()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.