|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.web.runtime.WebContext
public class WebContext
Class Name: WebContext A wrapper for the ServletContext class.
Class Type: Normal
Base Class: None
Intf Class: IContext
Description:
| Constructor Summary | |
|---|---|
WebContext(javax.servlet.ServletContext theServletContext)
Constructor which builds a WebContext from a ServletContext. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object webContext)
Compares the specified WebContext object's internal ServletContext with the internal ServletContext object. |
Object |
getAttribute(String name)
Returns the specified attribute. |
Enumeration |
getAttributeNames()
Returns a list of attribute names. |
WebContext |
getContext(String contextRoot)
Retrieve a WebContext for the specified context root |
String |
getContextName()
Returns the application name. |
String |
getInitParameter(String name)
Retrieve the specified initialization parameter. |
Enumeration |
getInitParameterNames()
Returns an Enumeration of initialization parameter names. |
String |
getRealPath(String arg0)
Retrieve the real path. |
IRequestDispatcher |
getRequestDispatcher(String arg0)
Get the Request dispatcher associated with the resource in input |
InputStream |
getResourceAsStream(String resource)
Retrieve the specified resource as a stream. |
InputStream |
getResourceAsStream(String[] resources)
Retrieve the specified resource as a stream. |
javax.servlet.ServletContext |
getServletContext()
Retrieve the servlet context. |
int |
hashCode()
Calculate the hash code. |
void |
log(String arg0)
Add the specified information to the log. |
void |
log(String arg0,
Throwable arg1)
Logs exception information. |
void |
removeAttribute(String name)
Removes the specified attribute. |
void |
setAttribute(String name,
Object value)
Sets the specified attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebContext(javax.servlet.ServletContext theServletContext)
theServletContext - The servlet context to be used in the construction of this class.| Method Detail |
|---|
public boolean equals(Object webContext)
equals in class ObjectwebContext - The WebContext object to be used for comparison.
Object.equals(java.lang.Object)public Object getAttribute(String name)
getAttribute in interface IContextname - The name of the attribute to retrieve.
ServletContext.getAttribute(java.lang.String)public Enumeration getAttributeNames()
getAttributeNames in interface IContextServletContext.getAttributeNames()public String getContextName()
getContextName in interface IContextServletContext.getServletContextName()public String getInitParameter(String name)
getInitParameter in interface IContextname - The name of the initialization parameter to retrieve.
ServletContext.getInitParameter(java.lang.String)public Enumeration getInitParameterNames()
getInitParameterNames in interface IContextServletContext.getInitParameterNames()public String getRealPath(String arg0)
getRealPath in interface IContextarg0 - The real path to retrieve.
ServletContext.getRealPath(java.lang.String)public IRequestDispatcher getRequestDispatcher(String arg0)
IContext
getRequestDispatcher in interface IContextarg0 - Input parameter used to specify the request dispatcher.
ServletContext.getRequestDispatcher(java.lang.String)public InputStream getResourceAsStream(String resource)
getResourceAsStream in interface IContextresource - The resource to retrieve as a stream.
ServletContext.getResourceAsStream(java.lang.String)public InputStream getResourceAsStream(String[] resources)
getResourceAsStream in interface IContextresources - The resource to retrieve as a stream.
ServletContext.getResourceAsStream(java.lang.String)public javax.servlet.ServletContext getServletContext()
public WebContext getContext(String contextRoot)
public int hashCode()
hashCode in class ObjectObject.hashCode()public void log(String arg0)
log in interface IContextarg0 - The log entry.ServletContext.log(java.lang.String)
public void log(String arg0,
Throwable arg1)
log in interface IContextarg0 - The information to log.arg1 - The exception information to log.ServletContext.log( java.lang.String, java.lang.Throwable )public void removeAttribute(String name)
removeAttribute in interface IContextname - The name of the attribute to be removed.ServletContext.removeAttribute( java.lang.String )
public void setAttribute(String name,
Object value)
setAttribute in interface IContextname - The name of the attribute to be set.value - The value to be used in setting the named attribute.ServletContext.setAttribute(java.lang.String, java.lang.Object)
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||