(Context ctx)
| 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"; |
nothing calls this directly
no test coverage detected