|
|||||||||
| Home >> All >> org >> enhydra >> servlet >> [ debug overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enhydra.servlet.debug
Class ServletTransactionRecord

java.lang.Objectorg.enhydra.servlet.debug.ServletTransactionRecord
- public class ServletTransactionRecord
- extends java.lang.Object
Transaction record that describes a single servlet transaction.
- Version:
- $Revision: 1.4.12.1 $
| Field Summary | |
private java.lang.Throwable |
error
The exception or error that the servlet threw. |
protected int |
id
Unique id of this transaction. |
protected ServletTransactionRecord |
next
Linked used for managing the record queue. |
private java.lang.String |
postSession
An HTML representaion of the session data after the request was processed. |
private java.lang.String |
preSession
An HTML representaion of the session data before the request was processed. |
private RequestRecord |
requestRecord
Object used to record the request. |
private ResponseRecord |
responseRecord
Object user to record the response. |
private java.lang.String |
servletName
The name of the servlet that was sent this request. |
private java.lang.StringBuffer |
trace
Trace string. |
private boolean |
traceEnabled
Is tracing enabled? |
| Constructor Summary | |
protected |
ServletTransactionRecord(java.lang.String servletName,
RequestRecord requestRecord,
ResponseRecord responseRecord)
Construct a new servlet transaction record. |
| Method Summary | |
protected void |
addTrace(java.lang.String str)
Add a string to the trace log. |
int |
getId()
Get the id of this object Id is not set until the object is added to the queue. |
java.lang.String |
getPostSessionString()
Get the string description of the session data after the request was processed. |
java.lang.String |
getPreSessionString()
Get the string description of the session data before the request was processed. |
RequestRecord |
getRequestRecord()
Get request record. |
ResponseRecord |
getResponseRecord()
Get response record. |
java.lang.String |
getServletName()
Get the name of the servlet that was sent this request. |
java.lang.String |
getTrace()
Get the trace log. |
protected void |
setError(java.lang.Throwable error)
Set the exception or error that the servlet threw. |
void |
setPostSessionString(java.lang.String desc)
Save a string (html) description of the session data after the request was processed. |
void |
setPreSessionString(java.lang.String desc)
Save a string (html) description of the session data before the request was processed. |
protected void |
stopTracing()
Stop tracing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
next
protected ServletTransactionRecord next
- Linked used for managing the record queue.
id
protected int id
- Unique id of this transaction.
servletName
private java.lang.String servletName
- The name of the servlet that was sent this request.
requestRecord
private RequestRecord requestRecord
- Object used to record the request.
responseRecord
private ResponseRecord responseRecord
- Object user to record the response.
error
private java.lang.Throwable error
- The exception or error that the servlet threw.
trace
private java.lang.StringBuffer trace
- Trace string.
preSession
private java.lang.String preSession
- An HTML representaion of the session data before the request
was processed.
postSession
private java.lang.String postSession
- An HTML representaion of the session data after the request
was processed.
traceEnabled
private boolean traceEnabled
- Is tracing enabled?
| Constructor Detail |
ServletTransactionRecord
protected ServletTransactionRecord(java.lang.String servletName, RequestRecord requestRecord, ResponseRecord responseRecord)
- Construct a new servlet transaction record.
| Method Detail |
setError
protected void setError(java.lang.Throwable error)
- Set the exception or error that the servlet threw.
getId
public int getId()
- Get the id of this object Id is not set until the object is added to
the queue.
getServletName
public java.lang.String getServletName()
- Get the name of the servlet that was sent this request.
getRequestRecord
public RequestRecord getRequestRecord()
- Get request record.
getResponseRecord
public ResponseRecord getResponseRecord()
- Get response record.
addTrace
protected void addTrace(java.lang.String str)
- Add a string to the trace log.
stopTracing
protected void stopTracing()
- Stop tracing. Calls to
addTrace()will be ignored.
getTrace
public java.lang.String getTrace()
- Get the trace log.
setPreSessionString
public void setPreSessionString(java.lang.String desc)
- Save a string (html) description of the session data before the
request was processed. This call is optional, as session data
only applies when the servlet being debugged is an Enhydra servlet.
getPreSessionString
public java.lang.String getPreSessionString()
- Get the string description of the session data before the request
was processed. This is optional data, if setPreSessionString() was
never called, the result will be null.
setPostSessionString
public void setPostSessionString(java.lang.String desc)
- Save a string (html) description of the session data after the
request was processed. This call is optional, as session data
only applies when the servlet being debugged is an Enhydra servlet.
getPostSessionString
public java.lang.String getPostSessionString()
- Get the string description of the session data after the request
was processed. This is optional data, if setPostSessionString() was
never called, the result will be null.
|
|||||||||
| Home >> All >> org >> enhydra >> servlet >> [ debug overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.enhydra.servlet.debug.ServletTransactionRecord