Servertec ServletContextImpl
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.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

None

Returns

String the name of the ServletContext.

Throws

Nothing

Example

String name = (ServletContextImpl)context.getName();

getSessions

Returns an Enumeration of any existings in memory HttpSessions.

Syntax

public final Enumeration getSessions()

Parameters

None

Returns

Enumeration the Enumeration fo any existing HttpSessions.

Throws

Nothing

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

None

Returns

String the base URI.

Throws

Nothing

Example

String uri = (ServletContextImpl)context.getURI();
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:57:18 EDT 2005