vqServer API Class vq.server.Servlets

java.lang.Object
    |
    +----vq.utils.kllist
            |
            +----vq.server.Servlets
Contents
Package index
Package
API index

public class Servlets
extends kllist
Represents the initialised servlet instances known to vqServer. vqServer assumes that there is only one Servlets object (returned by console.getServlets()).


Constructor Index

 o Servlets()
Creates an empty list.

Method Index

 o destroy()
Calls the destroy() method of all servlet instances and removes them from the list.
 o destroy(String, String, int)
Calls the destroy() method of the specified servlet instance.
 o enumServletInstances()
Returns an enumeration of all initilised servlet instances (as ServletInstance objects).
 o getServlet(String, String, Alias)
Returns the specified servlet instance (as a ServletInstance object) or null if the servlet cannot be loaded, instantiated or initialised.
 o isInitialised(String, String, int)
Returns true if the specified servlet instance is initialised.

Constructor Detail

 o Servlets
public Servlets()
          Creates an empty list.

Method Detail

 o isInitialised
public boolean isInitialised(java.lang.String requestedName,
                             java.lang.String translatedName,
                             int port)
          Returns true if the specified servlet instance is initialised.
 o getServlet
public ServletInstance getServlet(java.lang.String requestedName,
                                  java.lang.String translatedName,
                                  Alias theAlias) throws javax.servlet.ServletException
          Returns the specified servlet instance (as a ServletInstance object) or null if the servlet cannot be loaded, instantiated or initialised. If the servlet is not loaded it is loaded, instantiated, initialised (using initialisation parameters from theAlias) and added to the list. If the servlet's main class file (identified from translatedName) has changed since the servlet was last retrieved by getServlet() the servlet is destroyed, reloaded and reinitialised.
 o destroy
public void destroy()
          Calls the destroy() method of all servlet instances and removes them from the list.
 o destroy
public void destroy(java.lang.String requestedName,
                    java.lang.String translatedName,
                    int port)
          Calls the destroy() method of the specified servlet instance.
 o enumServletInstances
public java.util.Enumeration enumServletInstances()
          Returns an enumeration of all initilised servlet instances (as ServletInstance objects).


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index