-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trace_BES95_RESPONSE_EMPTY.java
43 lines (34 loc) · 1.65 KB
/
Trace_BES95_RESPONSE_EMPTY.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import com.sun.btrace.BTraceUtils;
import com.sun.btrace.annotations.BTrace;
import com.sun.btrace.annotations.OnMethod;
import com.sun.btrace.annotations.Self;
@BTrace
public class Trace_BES95_RESPONSE_EMPTY {
@OnMethod(clazz = "org.apache.coyote.Response", method = "setStatus")
public static void setCoyoteStatus(@Self Object obj,int status) {
BTraceUtils.println("======being setStatuscoyote.Response======");
BTraceUtils.jstack();
BTraceUtils.println(BTraceUtils.concat("status:", BTraceUtils.str(status)));
BTraceUtils.println("======end setStatuscoyote.Response======");
}
@OnMethod(clazz = "org.apache.catalina.connector.Response", method = "setStatus")
public static void setCRStatus(@Self Object obj,int status,String message) {
BTraceUtils.println("======being setStatus-connector.Response======");
BTraceUtils.jstack();
BTraceUtils.println(BTraceUtils.concat("status:", BTraceUtils.str(status)));
BTraceUtils.println("======end setStatus-connector.Response======");
}
@OnMethod(clazz = "org.apache.catalina.connector.Response", method = "sendError")
public static void setCRError(@Self Object obj,int status,String message) {
BTraceUtils.println("======being sendError======");
BTraceUtils.jstack();
BTraceUtils.println(BTraceUtils.concat("status:", BTraceUtils.str(status)));
BTraceUtils.println("======end sendError======");
}
@OnMethod(clazz = "org.apache.tomcat.util.http.Parameters", method = "processParameters")
public static void processParameters(@Self Object obj) {
BTraceUtils.println("======being processParameters======");
BTraceUtils.jstack();
BTraceUtils.println("======end processParameters======");
}
}