Servertec ServletContextManager
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
How To
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Command Line
Administrator
Localization
Programming
Security
Performance
Deployment
Server 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 / JSP API
Xerces API
CGI
SSI
Servlets
Config Files
Log Files
Classes
Directory Tree
Examples
Legal
Contact Us

 

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: Sun Sep 04 14:57:18 EDT 2005