Servertec   ServletManager
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Conventions
Users
Reference
iServer API
AccessLogEntry
Codecs
Connection
ConnectionPool...
DString
ErrorLogEntry
EventLogEntry
FileCache
FileUpload
IOHandler
IOManager
iws
Logger
MultiPartForm
QuickSort
QuickSortString...
Realm
RealmAdmin...
RealmManager
ServletContextImpl
ServletContext...
ServletImpl
ServletManager
Utils

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

Samples
Sales
Legal
Feedback

 

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

public class ServletManager extends Object

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 static boolean isServletLoaded(ServletContextImpl context,
                                      String alias)
                                      throws Exception

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 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 static void loadServlet(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
 Built with iScript Copyright © 1997-2000 Servertec. All rights reserved.
Last Modified: Thu Aug 10 13:06:59 EDT 2000