|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.valves.ValveBase
org.apache.catalina.cluster.tcp.ReplicationValve
Implementation of a Valve that logs interesting contents from the specified Request (before processing) and the corresponding Response (after processing). It is especially useful in debugging problems related to headers and cookies.
This Valve may be attached to any Container, depending on the granularity of the logging you wish to perform.
Field Summary | |
protected java.lang.String |
filter
|
protected static long |
lastSendTime
|
protected static long |
nrOfRequests
|
protected java.util.regex.Pattern[] |
reqFilters
holds file endings to not call for like images and others |
protected static StringManager |
sm
The StringManager for this package. |
protected static long |
totalRequestTime
|
protected static long |
totalSendTime
|
Fields inherited from class org.apache.catalina.valves.ValveBase |
container, controller, domain, mserver, next, oname |
Constructor Summary | |
ReplicationValve()
|
Method Summary | |
protected static void |
addClusterSendTime(long requestTime,
long clusterTime)
|
java.lang.String |
getFilter()
|
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation. |
void |
invoke(Request request,
Response response)
Log the interesting request parameters, invoke the next Valve in the sequence, and log the interesting response parameters. |
void |
setFilter(java.lang.String filter)
|
java.lang.String |
toString()
Return a String rendering of this object. |
Methods inherited from class org.apache.catalina.valves.ValveBase |
backgroundProcess, createObjectName, getContainer, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static StringManager sm
protected java.util.regex.Pattern[] reqFilters
protected java.lang.String filter
protected static long totalRequestTime
protected static long totalSendTime
protected static long nrOfRequests
protected static long lastSendTime
Constructor Detail |
public ReplicationValve()
Method Detail |
public java.lang.String getInfo()
getInfo
in interface Valve
getInfo
in class ValveBase
protected static void addClusterSendTime(long requestTime, long clusterTime)
public void invoke(Request request, Response response) throws java.io.IOException, javax.servlet.ServletException
invoke
in interface Valve
invoke
in class ValveBase
request
- The servlet request to be processedresponse
- The servlet response to be created
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet error occurspublic java.lang.String toString()
public void setFilter(java.lang.String filter)
public java.lang.String getFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |