public class XINSServletContext extends Object implements ServletContext
Constructor and Description |
---|
XINSServletContext()
Creates a new
XINSServletContext instance. |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String str) |
Enumeration |
getAttributeNames() |
ServletContext |
getContext(String str) |
String |
getInitParameter(String str) |
Enumeration |
getInitParameterNames() |
int |
getMajorVersion() |
String |
getMimeType(String str) |
int |
getMinorVersion() |
RequestDispatcher |
getNamedDispatcher(String str) |
String |
getRealPath(String str) |
RequestDispatcher |
getRequestDispatcher(String str) |
URL |
getResource(String str) |
InputStream |
getResourceAsStream(String str) |
Set |
getResourcePaths(String str) |
String |
getServerInfo() |
Servlet |
getServlet(String str) |
String |
getServletContextName() |
Enumeration |
getServletNames() |
Enumeration |
getServlets() |
void |
log(Exception exception,
String msg) |
void |
log(String msg) |
void |
log(String msg,
Throwable throwable) |
void |
removeAttribute(String str) |
void |
setAttribute(String str,
Object obj) |
public XINSServletContext()
XINSServletContext
instance.public void removeAttribute(String str)
removeAttribute
in interface ServletContext
public Servlet getServlet(String str)
getServlet
in interface ServletContext
public Set getResourcePaths(String str)
getResourcePaths
in interface ServletContext
public Object getAttribute(String str)
getAttribute
in interface ServletContext
public ServletContext getContext(String str)
getContext
in interface ServletContext
public String getInitParameter(String str)
getInitParameter
in interface ServletContext
public String getMimeType(String str)
getMimeType
in interface ServletContext
public RequestDispatcher getNamedDispatcher(String str)
getNamedDispatcher
in interface ServletContext
public String getRealPath(String str)
getRealPath
in interface ServletContext
public RequestDispatcher getRequestDispatcher(String str)
getRequestDispatcher
in interface ServletContext
public URL getResource(String str)
getResource
in interface ServletContext
public InputStream getResourceAsStream(String str)
getResourceAsStream
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 msg, Throwable throwable)
log
in interface ServletContext
public void setAttribute(String str, Object obj)
setAttribute
in interface ServletContext
public Enumeration getServlets()
getServlets
in interface ServletContext
public Enumeration getServletNames()
getServletNames
in interface ServletContext
public String getServletContextName()
getServletContextName
in interface ServletContext
public String getServerInfo()
getServerInfo
in interface ServletContext
public Enumeration getAttributeNames()
getAttributeNames
in interface ServletContext
public Enumeration getInitParameterNames()
getInitParameterNames
in interface ServletContext
public int getMajorVersion()
getMajorVersion
in interface ServletContext
public int getMinorVersion()
getMinorVersion
in interface ServletContext
See http://www.xins.org/.