IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class TraceLog

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ibm.btt.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
protected static java.lang.String defaultPort
           
protected static int hostPort
           
protected static TraceLog servlet
           
protected 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

protected static TraceLog servlet

TraceLogLoaded

protected static final int TraceLogLoaded
See Also:
Constant Field Values

defaultPort

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

hostPort

protected 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.

Overrides:
doPost in class javax.servlet.http.HttpServlet
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 WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011