Servertec ServletManager
Documentation
Conventions
Command Line
Java API
AccessLogEntry
Codecs
DString
ErrorLogEntry
EventLogEntry
iws
Logger
ServletManager
Utils

Servlet API
Servlets
Config Files
Classes
Directory Tree

Return

 

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

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

Parameters

alias an existing Servlet alias.

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 stec.iws.ServletImpl loadServlet
    (ServletContextImpl context,
     String alias)
     throws Exception

Parameters

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

Returns

ServletImpl context to 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 loadServlet
    (ServletContextImpl context,
     String alias)
     throws Exception

Parameters

alias an existing Servlet alias.

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: Mon Sep 05 14:25:44 EDT 2005