Java Reference
In-Depth Information
The getContext() Method
public ServletContext getContext(java.lang.String uripath)
B
The getContext() method returns a reference to a ServletContext object belonging a partic-
ular URI path. getContext() throws no exceptions.
It has one parameter:
java.lang.String
It returns this value:
ServletContext
The getInitParameter() Method
public java.lang.String getInitParameter(java.lang.String name)
The getInitParameter() method returns the value for the named context parameter.
getInitParameter() throws no exceptions.
It has one parameter:
java.lang.String
It returns this value:
java.lang.String
The getInitParameterNames() Method
public Enumeration getInitParameterNames()
The getInitParameterNames() method returns an enumeration of all the context parameter
names. getInitParameterNames() has no parameters and throws no exceptions.
It returns this value:
Enumeration
The getMajorVersion() Method
public int getMajorVersion()
The getMajorVersion() method returns an integer representing the major version of the
servlet API that the servlet engine supports. If the servlet engine supported the servlet API 2.1,
the result would be 2. getMajorVersion() has no parameters and throws no exceptions.
It returns this value:
int
 
Search WWH ::




Custom Search