- 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.
Aliases()
- Creates an empty list.
add(Alias)
- Adds an alias to the list.
addServlet(String, Servlet)
- Creates an alias with the specified name which refers to the specified
servlet instance only and
adds it to the list.
Aliases
public Aliases()
Creates an empty list.
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.
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.
- 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.
- theAlias should start with / and should not end with /.
- vqServer cannot initialise, destroy or reload the servlet.
These actions are the responsibility of the calling application.
- The never destroy property of the associated ServletInstance object is set.
- The alias will not be saved by HttpServer.save(vqos).
- 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.