vqServer API Class vq.server.ServletInstance

java.lang.Object
    |
    +----vq.utils.klentry
            |
            +----vq.server.ServletInstance
Contents
Package index
Package
API index

public class ServletInstance
extends klentry
Represents an instance of a servlet class. A servlet instance is identified by
  1. the directory or archive from which the servlet class was read
  2. the fully qualified class name of the servlet class
  3. the port number of the server which "owns" the servlet instance
  4. the alias or name by which the servlet was/is invoked

The directory and class name are referred to as the servlet specification or the translated name (because it is the result of the translation of the requested file name) and takes the form path/packagename.classname. See the servlets page of the main vqServer docs for more details on servlet specifications.

Servlet instances do not have a public contructor. They are created by Servlets.getServlet() and can be destroyed using one of the Servlets.destroy() methods.


Method Index

 o getAlias()
Returns the alias by which the servlet was/is invoked.
 o getClassName()
Returns the fully qualified class name of the servlet.
 o getFileName()
Returns the actual file name of the servlet class file, the archive name if it was loaded from an archive or null if the servlet was read from the CLASSPATH.
 o getPath()
Returns the directory or archive from which the servlet .class file was read.
 o getPort()
Returns the TCP/IP port number of the server that "owns" the servlet.
 o getServlet()
Returns the actual servlet.
 o service(ServletRequest, ServletResponse)
Invokes the servlet's service() method.

Method Detail

 o service
public void service(javax.servlet.ServletRequest req,
                    javax.servlet.ServletResponse rep) throws javax.servlet.ServletException, java.io.IOException
          Invokes the servlet's service() method. If the servlet implements javax.servlet.SingleThreadModel the current thread will block until the servlet becomes free.
 o getPath
public java.lang.String getPath()
          Returns the directory or archive from which the servlet .class file was read.
 o getClassName
public java.lang.String getClassName()
          Returns the fully qualified class name of the servlet.
 o getFileName
public java.lang.String getFileName()
          Returns the actual file name of the servlet class file, the archive name if it was loaded from an archive or null if the servlet was read from the CLASSPATH.
 o getPort
public int getPort()
          Returns the TCP/IP port number of the server that "owns" the servlet.
 o getAlias
public java.lang.String getAlias()
          Returns the alias by which the servlet was/is invoked.
 o getServlet
public javax.servlet.Servlet getServlet()
          Returns the actual servlet.


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