java.lang.Object
|
+--stec.iws.ServletContextManager
public final class ServletContextManager
Methods used to access Servlet Contexts.
Methods
getServletContext
Returns the ServletContext for the specified URI.
Syntax
public final synchronized static ServletContextImpl
getServletContext(String uri)
throws Exception
Parameters
|
uri
|
the ServletContext associated with the specified URI.
|
Returns
|
ServletContextImpl
|
the ServletContext associated with the specified URI.
|
Throws
|
Exception
|
any exception thrown.
|
Example
ServletContextImpl context =
ServletContextManager.getServletContext("/");
getServletContext
Returns an Enumeration of any existing ServletContexts.
Syntax
public final static Enumeration getServletContexts()
Parameters
Returns
|
Enumeration
|
the Enumeration of any existing ServletContexts.
|
Throws
Example
Enumeration e = ServletContextManager.getServletContexts();
|