1 package com.philemonworks.selfdiagnose.test.xtra;
2
3 import javax.servlet.http.HttpServletRequest;
4
5 import com.philemonworks.selfdiagnose.DiagnoseException;
6 import com.philemonworks.selfdiagnose.DiagnosticTask;
7 import com.philemonworks.selfdiagnose.DiagnosticTaskResult;
8 import com.philemonworks.selfdiagnose.ExecutionContext;
9 import com.philemonworks.selfdiagnose.SelfDiagnoseServlet;
10
11 public class RequestInspectingTask extends DiagnosticTask {
12 public HttpServletRequest request;
13
14 public String getDescription() {
15
16 return null;
17 }
18
19 public void run(ExecutionContext ctx, DiagnosticTaskResult result) throws DiagnoseException {
20 request = SelfDiagnoseServlet.getCurrentRequest();
21 SelfDiagnoseServlet.getCurrentSession();
22 SelfDiagnoseServlet.getWebApplicationName();
23 }
24 }