vqServer API Class vq.server.Aliases

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

public class Aliases
extends kllist
Represents a list of aliases. Usually associated with an HttpServer. Warning: vqServer will not operate correctly if you add anything other than instances of Alias to an instance of Aliases. Use add(Alias) to add instances of Alias to an instance of Aliases.


Constructor Index

 o Aliases()
Creates an empty list.

Method Index

 o add(Alias)
Adds an alias to the list.
 o addServlet(String, Servlet)
Creates an alias with the specified name which refers to the specified servlet instance only and adds it to the list.

Constructor Detail

 o Aliases
public Aliases()
          Creates an empty list.

Method Detail

 o add
public void add(Alias tservice)
          Adds an alias to the list. The position of the alias in the list is determined by its name.
 o addServlet
public Alias addServlet(java.lang.String theAlias,
                        javax.servlet.Servlet theServlet)
          Creates an alias with the specified name which refers to the specified servlet instance only and adds it to the list. The real name property of the alias is set to **embedded/aliasname. The servlet instance is added to vqServer's list of servlet instances.
  1. This method is intended for certain types of embedded application (where a servlet cannot be loaded as required from the file system) only. Please see the documentation for an example of its use.
  2. theAlias should start with / and should not end with /.
  3. vqServer cannot initialise, destroy or reload the servlet. These actions are the responsibility of the calling application.
  4. The never destroy property of the associated ServletInstance object is set.
  5. The alias will not be saved by HttpServer.save(vqos).
  6. The servlet shares its name space with vqServer and can refer to classes in vqServer's classes.zip and any classes on the system CLASSPATH.


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