MCPcopy Index your code
hub / github.com/dianping/cat / handle

Method handle

integration/URL/CatFilter.java:58–74  ·  view source on GitHub ↗
(Context ctx)

Source from the content-addressed store, hash-verified

56 ENVIRONMENT {
57
58 @Override
59 public void handle(Context ctx) throws IOException, ServletException {
60 HttpServletRequest req = ctx.getRequest();
61 boolean top = !Cat.getManager().hasContext();
62
63 ctx.setTop(top);
64
65 if (top) {
66 ctx.setType(CatConstants.TYPE_URL);
67
68 setTraceMode(req);
69 } else {
70 ctx.setType(CatConstants.TYPE_URL_FORWARD);
71 }
72
73 ctx.handle();
74 }
75
76 protected void setTraceMode(HttpServletRequest req) {
77 String traceMode = "X-CAT-TRACE-MODE";

Callers

nothing calls this directly

Calls 15

getManagerMethod · 0.95
setTraceModeMethod · 0.95
getCurrentMessageIdMethod · 0.95
getCatServerMethod · 0.95
logRequestClientInfoMethod · 0.95
logRequestPayloadMethod · 0.95
newTransactionMethod · 0.95
getRequestURIMethod · 0.95
customizeStatusMethod · 0.95
logErrorMethod · 0.95
customizeUriMethod · 0.95
completeMethod · 0.95

Tested by

no test coverage detected