Servertec ServletContextManager
Documentation
Conventions
Command Line
Administrator
Localization
Programming
Security
Performance
Deployment
Java API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileCache
FileUpload
IOHandler
IOManager
iws
Logger
MonitorEvent...
MultiPartForm
QuickSort
Realm
RealmAdmin...
RealmManager
ServletContextImpl
ServletContext...
ServletImpl
ServletManager
SocketHandler
Utils

Servlet API
CGI
SSI
Servlets
Config Files
Log Files
Classes
Directory Tree

Return

 

java.lang.Object
 |
 +--stec.iws.ServletContextManager

public final class ServletContextManager

Methods used to access Servlet Contexts.

Methods

Method Description
getServletContext Returns the ServletContext for the specified URI.
getServletContexts Returns an Enumeration of any existing ServletContexts.

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

None

Returns

Enumeration the Enumeration of any existing ServletContexts.

Throws

Nothing

Example

Enumeration e = ServletContextManager.getServletContexts();
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:38 EDT 2005