java.lang.Object
|
+--stec.iws.ServletContextImpl
public final class ServletContextImpl implements ServletContext
Implements ServletContext.
Methods
Method
|
Description
|
getName
|
Returns the name of the ServletContext.
|
getSessions
|
Returns an Enumeration of any existings in memory HttpSessions.
|
getURI
|
Returns the base URI of the ServletContext.
|
getName
Returns the name of the ServletContext.
Syntax
public final String getName()
Parameters
Returns
String
|
the name of the ServletContext.
|
Throws
Example
String name = (ServletContextImpl)context.getName();
getSessions
Returns an Enumeration of any existings in memory HttpSessions.
Syntax
public final Enumeration getSessions()
Parameters
Returns
Enumeration
|
the Enumeration fo any existing HttpSessions.
|
Throws
Notes
This method should only be used when Session Store is set to
stec.iws.MemorySessionStore because it does not enumerate HttpSessions
stored in file system, database or persistent object store.
Example
Enumeration e = (ServletContextImpl)context.getSessions();
getURI
Returns the base URI of the ServletContext.
Syntax
public final String getURI()
Parameters
Returns
Throws
Example
String uri = (ServletContextImpl)context.getURI();
|