Servertec ServletManager
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
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
Samples
Legal
Contact Us

 

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

public final class ServletManager

Contains methods used to load and unload Servlets.

Methods

Method Description
isServletLoaded Returns whether the specified Servlet is loaded.
loadServlet Used to load the specified Servlet alias.
unloadServlet Used to unload the specified Servlet alias.

isServletLoaded

Returns whether the specified Servlet is loaded.

Syntax

public final static boolean isServletLoaded(
    ServletContextImpl context,
    String alias)

Parameters

alias an existing Servlet alias.
context the ServletContext to use.

Returns

boolean whether the specified Servlet is loaded.

Throws

Nothing

Example

ServletManager.isServletLoaded("FileServlet");

loadServlet

Used to load the specified Servlet alias.

Syntax

public final static ServletImpl loadServlet(
    ServletContextImpl context,
    String alias)
    throws Exception

Parameters

alias an existing Servlet alias.
context the ServletContext to use.

Returns

ServletImpl instance of the loaded Servlet.

Throws

Exception if any errors occurs.

Example


ServletContextImpl servlet_context =
    ServletContextManager.getServletContext("/");


ServletImpl servlet_instance = ServletManager.loadServlet(servlet_context, "FileServlet");

unloadServlet

Used to unload the specified Servlet alias.

Syntax

public final static void unloadServlet(
    ServletContextImpl context,
    String alias)
    throws Exception

Parameters

alias an existing Servlet alias.
context the ServletContext to use.

Returns

Nothing

Throws

Exception if any errors occurs.

Example


ServletContextImpl servlet_context =
    ServletContextManager.getServletContext("/");


ServletManager.unloadServlet(servlet_context, "FileServlet");
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:49 EDT 2005