Revision 10201
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/restservice/D1HttpRequest.java | ||
---|---|---|
30 | 30 |
import javax.servlet.http.HttpServletRequest; |
31 | 31 |
import javax.servlet.http.HttpServletRequestWrapper; |
32 | 32 |
|
33 |
import org.apache.log4j.Logger; |
|
34 |
|
|
33 | 35 |
/** |
34 | 36 |
* @author berkley |
35 | 37 |
* Class to override getPathInfo on the servlet request |
36 | 38 |
*/ |
37 | 39 |
public class D1HttpRequest extends HttpServletRequestWrapper |
38 | 40 |
{ |
41 |
private static Logger logMetacat = Logger.getLogger(D1HttpRequest.class); |
|
39 | 42 |
/** |
40 | 43 |
* HttpServletRequestWrapper(HttpServletRequest request) |
41 | 44 |
*/ |
... | ... | |
53 | 56 |
{ |
54 | 57 |
String s = super.getPathInfo(); |
55 | 58 |
System.out.println("original pathInfo: " + s); |
59 |
logMetacat.info("D1HttpRequest.getPathInfo - the orignial pathInfo: "+s); |
|
56 | 60 |
String reqUri = this.getRequestURI(); |
57 | 61 |
System.out.println("original requestURI: " + reqUri); |
58 | 62 |
String strip = this.getContextPath() + this.getServletPath(); |
... | ... | |
67 | 71 |
s = URLDecoder.decode(s); |
68 | 72 |
}*/ |
69 | 73 |
System.out.println("new pathinfo: " + s); |
74 |
logMetacat.info("D1HttpRequest.getPathInfo - the new pathInfo: "+s); |
|
70 | 75 |
return s; |
71 | 76 |
} |
72 | 77 |
|
Also available in: Unified diff
Add the debug statement.