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 ServletContext
public int getMajorVersion()
getMajorVersion
in interface ServletContext
public String getMimeType(String file)
getMimeType
in interface ServletContext
public int getMinorVersion()
getMinorVersion
in interface ServletContext
public RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher
in interface ServletContext
public RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher
in interface ServletContext
public String getRealPath(String path)
getRealPath
in interface ServletContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface ServletContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface ServletContext
public Set getResourcePaths(String path)
getResourcePaths
in interface ServletContext
public String getServerInfo()
getServerInfo
in interface ServletContext
@Deprecated public Servlet getServlet(String name) throws ServletException
getServlet
in interface ServletContext
ServletException
@Deprecated public Enumeration getServletNames()
getServletNames
in interface ServletContext
@Deprecated public Enumeration getServlets()
getServlets
in interface ServletContext
public void log(Exception exception, String msg)
log
in interface ServletContext
public void log(String msg)
log
in interface ServletContext
public void log(String message, Throwable throwable)
log
in interface ServletContext
public String getInitParameter(String name)
getInitParameter
in interface ServletContext
public Enumeration getInitParameterNames()
getInitParameterNames
in interface ServletContext
public Object getAttribute(String name)
getAttribute
in interface ServletContext
public Enumeration getAttributeNames()
getAttributeNames
in interface ServletContext
public void setAttribute(String name, Object value)
setAttribute
in interface ServletContext
public void removeAttribute(String name)
removeAttribute
in interface ServletContext
public String getServletContextName()
getServletContextName
in interface ServletContext
public String getContextPath()
getContextPath
in interface ServletContext
public 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
ServletException
public <T extends Servlet> T createServlet(Class<T> c) throws ServletException
ServletException
public 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
ServletException
public 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-2012 Mort Bay Consulting. All Rights Reserved.