|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.jspengine.servlet.JspCServletContext
public class JspCServletContext
Simple ServletContext implementation without
HTTP-specific methods.
| 字段摘要 | |
|---|---|
protected Hashtable |
myAttributes
Servlet context attributes. |
protected PrintWriter |
myLogWriter
The log writer we will write log messages to. |
protected URL |
myResourceBaseURL
The base URL (document root) for this context. |
| 构造方法摘要 | |
|---|---|
JspCServletContext(PrintWriter aLogWriter,
URL aResourceBaseURL)
Create a new instance of this ServletContext implementation. |
|
| 方法摘要 | |
|---|---|
Object |
getAttribute(String name)
Return the specified context attribute, if any. |
Enumeration |
getAttributeNames()
Return an enumeration of context attribute names. |
javax.servlet.ServletContext |
getContext(String uripath)
Return the servlet context for the specified path. |
String |
getContextPath()
Returns the context path of the web application. |
String |
getInitParameter(String name)
Return the specified context initialization parameter. |
Enumeration |
getInitParameterNames()
Return an enumeration of the names of context initialization parameters. |
int |
getMajorVersion()
Return the Servlet API major version number. |
String |
getMimeType(String file)
Return the MIME type for the specified filename. |
int |
getMinorVersion()
Return the Servlet API minor version number. |
javax.servlet.RequestDispatcher |
getNamedDispatcher(String name)
Return a request dispatcher for the specified servlet name. |
String |
getRealPath(String path)
Return the real path for the specified context-relative virtual path. |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path)
Return a request dispatcher for the specified context-relative path. |
URL |
getResource(String path)
Return a URL object of a resource that is mapped to the specified context-relative path. |
InputStream |
getResourceAsStream(String path)
Return an InputStream allowing access to the resource at the specified context-relative path. |
Set |
getResourcePaths(String path)
Return the set of resource paths for the "directory" at the specified context path. |
String |
getServerInfo()
Return descriptive information about this server. |
javax.servlet.Servlet |
getServlet(String name)
已过时。 This method has been deprecated with no replacement |
String |
getServletContextName()
Return the name of this servlet context. |
Enumeration |
getServletNames()
已过时。 This method has been deprecated with no replacement |
Enumeration |
getServlets()
已过时。 This method has been deprecated with no replacement |
void |
log(Exception exception,
String message)
已过时。 Use log(String,Throwable) instead |
void |
log(String message)
Log the specified message. |
void |
log(String message,
Throwable exception)
Log the specified message and exception. |
void |
removeAttribute(String name)
Remove the specified context attribute. |
void |
setAttribute(String name,
Object value)
Set or replace the specified context attribute. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected Hashtable myAttributes
protected PrintWriter myLogWriter
protected URL myResourceBaseURL
| 构造方法详细信息 |
|---|
public JspCServletContext(PrintWriter aLogWriter,
URL aResourceBaseURL)
aLogWriter - PrintWriter which is used for log() callsaResourceBaseURL - Resource base URL| 方法详细信息 |
|---|
public Object getAttribute(String name)
javax.servlet.ServletContext 中的 getAttributename - Name of the requested attributepublic Enumeration getAttributeNames()
javax.servlet.ServletContext 中的 getAttributeNamespublic String getContextPath()
javax.servlet.ServletContext 中的 getContextPathpublic javax.servlet.ServletContext getContext(String uripath)
javax.servlet.ServletContext 中的 getContexturipath - Server-relative path starting with '/'public String getInitParameter(String name)
javax.servlet.ServletContext 中的 getInitParametername - Name of the requested parameterpublic Enumeration getInitParameterNames()
javax.servlet.ServletContext 中的 getInitParameterNamespublic int getMajorVersion()
javax.servlet.ServletContext 中的 getMajorVersionpublic String getMimeType(String file)
javax.servlet.ServletContext 中的 getMimeTypefile - Filename whose MIME type is requestedpublic int getMinorVersion()
javax.servlet.ServletContext 中的 getMinorVersionpublic javax.servlet.RequestDispatcher getNamedDispatcher(String name)
javax.servlet.ServletContext 中的 getNamedDispatchername - Name of the requested servletpublic String getRealPath(String path)
javax.servlet.ServletContext 中的 getRealPathpath - The context-relative virtual path to resolvepublic javax.servlet.RequestDispatcher getRequestDispatcher(String path)
javax.servlet.ServletContext 中的 getRequestDispatcherpath - Context-relative path for which to acquire a dispatcher
public URL getResource(String path)
throws MalformedURLException
javax.servlet.ServletContext 中的 getResourcepath - Context-relative path of the desired resource
MalformedURLException - if the resource path is
not properly formedpublic InputStream getResourceAsStream(String path)
javax.servlet.ServletContext 中的 getResourceAsStreampath - Context-relative path of the desired resourcepublic Set getResourcePaths(String path)
javax.servlet.ServletContext 中的 getResourcePathspath - Context-relative base pathpublic String getServerInfo()
javax.servlet.ServletContext 中的 getServerInfo
public javax.servlet.Servlet getServlet(String name)
throws javax.servlet.ServletException
javax.servlet.ServletContext 中的 getServletname - Name of the requested servlet
javax.servlet.ServletExceptionpublic String getServletContextName()
javax.servlet.ServletContext 中的 getServletContextNamepublic Enumeration getServletNames()
javax.servlet.ServletContext 中的 getServletNamespublic Enumeration getServlets()
javax.servlet.ServletContext 中的 getServletspublic void log(String message)
javax.servlet.ServletContext 中的 logmessage - The message to be logged
public void log(Exception exception,
String message)
javax.servlet.ServletContext 中的 logexception - The exception to be loggedmessage - The message to be logged
public void log(String message,
Throwable exception)
javax.servlet.ServletContext 中的 logmessage - The message to be loggedexception - The exception to be loggedpublic void removeAttribute(String name)
javax.servlet.ServletContext 中的 removeAttributename - Name of the attribute to remove
public void setAttribute(String name,
Object value)
javax.servlet.ServletContext 中的 setAttributename - Name of the context attribute to setvalue - Corresponding attribute value
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||