|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.jasper.servlet.JspCServletContext
Simple ServletContext
implementation without
HTTP-specific methods.
フィールドの概要 | |
protected java.util.Hashtable |
myAttributes
Servlet context attributes. |
protected java.io.PrintWriter |
myLogWriter
The log writer we will write log messages to. |
protected java.net.URL |
myResourceBaseURL
The base URL (document root) for this context. |
コンストラクタの概要 | |
JspCServletContext(java.io.PrintWriter aLogWriter,
java.net.URL aResourceBaseURL)
Create a new instance of this ServletContext implementation. |
メソッドの概要 | |
java.lang.Object |
getAttribute(java.lang.String name)
Return the specified context attribute, if any. |
java.util.Enumeration |
getAttributeNames()
Return an enumeration of context attribute names. |
javax.servlet.ServletContext |
getContext(java.lang.String uripath)
Return the servlet context for the specified path. |
java.lang.String |
getInitParameter(java.lang.String name)
Return the specified context initialization parameter. |
java.util.Enumeration |
getInitParameterNames()
Return an enumeration of the names of context initialization parameters. |
int |
getMajorVersion()
Return the Servlet API major version number. |
java.lang.String |
getMimeType(java.lang.String file)
Return the MIME type for the specified filename. |
int |
getMinorVersion()
Return the Servlet API minor version number. |
javax.servlet.RequestDispatcher |
getNamedDispatcher(java.lang.String name)
Return a request dispatcher for the specified servlet name. |
java.lang.String |
getRealPath(java.lang.String path)
Return the real path for the specified context-relative virtual path. |
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path)
Return a request dispatcher for the specified context-relative path. |
java.net.URL |
getResource(java.lang.String path)
Return a URL object of a resource that is mapped to the specified context-relative path. |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Return an InputStream allowing access to the resource at the specified context-relative path. |
java.util.Set |
getResourcePaths(java.lang.String path)
Return the set of resource paths for the "directory" at the specified context path. |
java.lang.String |
getServerInfo()
Return descriptive information about this server. |
javax.servlet.Servlet |
getServlet(java.lang.String name)
推奨されていません。 This method has been deprecated with no replacement |
java.lang.String |
getServletContextName()
Return the name of this servlet context. |
java.util.Enumeration |
getServletNames()
推奨されていません。 This method has been deprecated with no replacement |
java.util.Enumeration |
getServlets()
推奨されていません。 This method has been deprecated with no replacement |
void |
log(java.lang.Exception exception,
java.lang.String message)
推奨されていません。 Use log(String,Throwable) instead |
void |
log(java.lang.String message)
Log the specified message. |
void |
log(java.lang.String message,
java.lang.Throwable exception)
Log the specified message and exception. |
void |
removeAttribute(java.lang.String name)
Remove the specified context attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set or replace the specified context attribute. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected java.util.Hashtable myAttributes
protected java.io.PrintWriter myLogWriter
protected java.net.URL myResourceBaseURL
コンストラクタの詳細 |
public JspCServletContext(java.io.PrintWriter aLogWriter, java.net.URL aResourceBaseURL)
aLogWriter
- PrintWriter which is used for log()
callsaResourceBaseURL
- Resource base URLメソッドの詳細 |
public java.lang.Object getAttribute(java.lang.String name)
javax.servlet.ServletContext
内の getAttribute
name
- Name of the requested attributepublic java.util.Enumeration getAttributeNames()
javax.servlet.ServletContext
内の getAttributeNames
public javax.servlet.ServletContext getContext(java.lang.String uripath)
javax.servlet.ServletContext
内の getContext
uripath
- Server-relative path starting with '/'public java.lang.String getInitParameter(java.lang.String name)
javax.servlet.ServletContext
内の getInitParameter
name
- Name of the requested parameterpublic java.util.Enumeration getInitParameterNames()
javax.servlet.ServletContext
内の getInitParameterNames
public int getMajorVersion()
javax.servlet.ServletContext
内の getMajorVersion
public java.lang.String getMimeType(java.lang.String file)
javax.servlet.ServletContext
内の getMimeType
file
- Filename whose MIME type is requestedpublic int getMinorVersion()
javax.servlet.ServletContext
内の getMinorVersion
public javax.servlet.RequestDispatcher getNamedDispatcher(java.lang.String name)
javax.servlet.ServletContext
内の getNamedDispatcher
name
- Name of the requested servletpublic java.lang.String getRealPath(java.lang.String path)
javax.servlet.ServletContext
内の getRealPath
path
- The context-relative virtual path to resolvepublic javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
javax.servlet.ServletContext
内の getRequestDispatcher
path
- Context-relative path for which to acquire a dispatcherpublic java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
javax.servlet.ServletContext
内の getResource
path
- Context-relative path of the desired resourcejava.net.MalformedURLException
- if the resource path is
not properly formedpublic java.io.InputStream getResourceAsStream(java.lang.String path)
javax.servlet.ServletContext
内の getResourceAsStream
path
- Context-relative path of the desired resourcepublic java.util.Set getResourcePaths(java.lang.String path)
javax.servlet.ServletContext
内の getResourcePaths
path
- Context-relative base pathpublic java.lang.String getServerInfo()
javax.servlet.ServletContext
内の getServerInfo
public javax.servlet.Servlet getServlet(java.lang.String name) throws javax.servlet.ServletException
javax.servlet.ServletContext
内の getServlet
name
- Name of the requested servletpublic java.lang.String getServletContextName()
javax.servlet.ServletContext
内の getServletContextName
public java.util.Enumeration getServletNames()
javax.servlet.ServletContext
内の getServletNames
public java.util.Enumeration getServlets()
javax.servlet.ServletContext
内の getServlets
public void log(java.lang.String message)
javax.servlet.ServletContext
内の log
message
- The message to be loggedpublic void log(java.lang.Exception exception, java.lang.String message)
javax.servlet.ServletContext
内の log
exception
- The exception to be loggedmessage
- The message to be loggedpublic void log(java.lang.String message, java.lang.Throwable exception)
javax.servlet.ServletContext
内の log
message
- The message to be loggedexception
- The exception to be loggedpublic void removeAttribute(java.lang.String name)
javax.servlet.ServletContext
内の removeAttribute
name
- Name of the attribute to removepublic void setAttribute(java.lang.String name, java.lang.Object value)
javax.servlet.ServletContext
内の setAttribute
name
- Name of the context attribute to setvalue
- Corresponding attribute value
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |