com.ibm.dse.base
Class TraceLog
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.ibm.dse.base.TraceLog
- public class TraceLog
- extends javax.servlet.http.HttpServlet
This servlet sends trace lines to Web Server logs
- See Also:
- Serialized Form
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 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,
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 |
servlet
public static TraceLog servlet
TraceLogLoaded
public static final int TraceLogLoaded
defaultPort
public static final java.lang.String defaultPort
hostPort
public static int hostPort
TraceLog
public TraceLog()
- This is the default constructor used to create a TraceLog object.
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.HttpServletRequestres
- javax.servlet.http.HttpServletResponse- Throws:
- java.io.IOException -
getPort
public static int getPort()
- Returns the port of the host where 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