public class ContextHandler.Context extends Object implements ServletContext
A partial implementation of ServletContext
. A complete implementation is provided by the derived ContextHandler
.
Modifier | Constructor and Description |
---|---|
protected |
ContextHandler.Context() |
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
public Servlet getServlet(String name) throws ServletException
getServlet
in interface ServletContext
ServletException
public Enumeration getServletNames()
getServletNames
in interface ServletContext
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
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.