IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.base
Class TraceLog

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.ibm.dse.base.TraceLog
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TraceLog
extends javax.servlet.http.HttpServlet

This servlet sends trace lines to Web Server logs.

See Also:
Serialized Form

Field Summary
static java.lang.String defaultPort
           
static int hostPort
           
static TraceLog servlet
           
static int TraceLogLoaded
           
 
Constructor Summary
TraceLog()
          This is the default constructor used to create a TraceLog object.
 
Method Summary
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          This method is called by the servlet engine automatically.
static int getPort()
          Returns the port of the host where it is listening.
static void initialize()
          This method initializes the object and it's default data.
static void setPort(int port)
          Sets the port where the host is listening.
 void trace(java.lang.String text)
          Writes a string to the http server log.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servlet

public static TraceLog servlet

TraceLogLoaded

public static final int TraceLogLoaded
See Also:
Constant Field Values

defaultPort

public static final java.lang.String defaultPort
See Also:
Constant Field Values

hostPort

public static int hostPort
Constructor Detail

TraceLog

public TraceLog()
This is the default constructor used to create a TraceLog object.

Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws java.io.IOException
This method is called by the servlet engine automatically. Saves a static instance of the class.

Parameters:
req - javax.servlet.http.HttpServletRequest
res - javax.servlet.http.HttpServletResponse
Throws:
java.io.IOException

getPort

public static int getPort()
Returns the port of the host where it is listening.

Returns:
int

initialize

public static void initialize()
This method initializes the object and it's default data.


setPort

public static void setPort(int port)
Sets the port where the host is listening.

Parameters:
port - int

trace

public void trace(java.lang.String text)
Writes a string to the http server log.

Parameters:
text - java.lang.String

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005