org.xins.common.servlet.container
Class XINSServletContext

java.lang.Object
  extended byorg.xins.common.servlet.container.XINSServletContext
All Implemented Interfaces:
ServletContext

public class XINSServletContext
extends Object
implements ServletContext

This class is an implementation of the ServletContext that can be called locally.

Version:
$Revision: 1.18 $ $Date: 2006/08/28 09:12:34 $
Author:
Anthony Goubard

Constructor Summary
XINSServletContext()
          Creates a new XINSServletContext instance.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XINSServletContext

public XINSServletContext()
Creates a new XINSServletContext instance.

Method Detail

removeAttribute

public void removeAttribute(String str)
Specified by:
removeAttribute in interface ServletContext

getServlet

public Servlet getServlet(String str)
Specified by:
getServlet in interface ServletContext

getResourcePaths

public Set getResourcePaths(String str)
Specified by:
getResourcePaths in interface ServletContext

getAttribute

public Object getAttribute(String str)
Specified by:
getAttribute in interface ServletContext

getContext

public ServletContext getContext(String str)
Specified by:
getContext in interface ServletContext

getInitParameter

public String getInitParameter(String str)
Specified by:
getInitParameter in interface ServletContext

getMimeType

public String getMimeType(String str)
Specified by:
getMimeType in interface ServletContext

getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String str)
Specified by:
getNamedDispatcher in interface ServletContext

getRealPath

public String getRealPath(String str)
Specified by:
getRealPath in interface ServletContext

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String str)
Specified by:
getRequestDispatcher in interface ServletContext

getResource

public URL getResource(String str)
Specified by:
getResource in interface ServletContext

getResourceAsStream

public InputStream getResourceAsStream(String str)
Specified by:
getResourceAsStream in interface ServletContext

log

public void log(Exception exception,
                String msg)
Specified by:
log in interface ServletContext

log

public void log(String msg)
Specified by:
log in interface ServletContext

log

public void log(String msg,
                Throwable throwable)
Specified by:
log in interface ServletContext

setAttribute

public void setAttribute(String str,
                         Object obj)
Specified by:
setAttribute in interface ServletContext

getServlets

public Enumeration getServlets()
Specified by:
getServlets in interface ServletContext

getServletNames

public Enumeration getServletNames()
Specified by:
getServletNames in interface ServletContext

getServletContextName

public String getServletContextName()
Specified by:
getServletContextName in interface ServletContext

getServerInfo

public String getServerInfo()
Specified by:
getServerInfo in interface ServletContext

getAttributeNames

public Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface ServletContext

getInitParameterNames

public Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface ServletContext

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface ServletContext

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface ServletContext


See http://www.xins.org/.