Revision 10202
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/restservice/D1RestServlet.java | ||
---|---|---|
71 | 71 |
protected void doGet(HttpServletRequest request, |
72 | 72 |
HttpServletResponse response) throws ServletException, IOException { |
73 | 73 |
System.out.println("HTTP Verb: GET"); |
74 |
logMetacat.info("D1RestServlet.doGet - HTTP Verb: GET"); |
|
74 | 75 |
handler = createHandler(request, response); |
75 | 76 |
handler.handle(D1ResourceHandler.GET); |
76 | 77 |
} |
... | ... | |
80 | 81 |
protected void doPost(HttpServletRequest request, |
81 | 82 |
HttpServletResponse response) throws ServletException, IOException { |
82 | 83 |
System.out.println("HTTP Verb: POST"); |
84 |
logMetacat.info("D1RestServlet.doPost - HTTP Verb: POST"); |
|
83 | 85 |
handler = createHandler(request, response); |
84 | 86 |
handler.handle(D1ResourceHandler.POST); |
85 | 87 |
} |
... | ... | |
89 | 91 |
protected void doDelete(HttpServletRequest request, |
90 | 92 |
HttpServletResponse response) throws ServletException, IOException { |
91 | 93 |
System.out.println("HTTP Verb: DELETE"); |
94 |
logMetacat.info("D1RestServlet.doDelete - HTTP Verb: DELETE"); |
|
92 | 95 |
handler = createHandler(request, response); |
93 | 96 |
handler.handle(D1ResourceHandler.DELETE); |
94 | 97 |
} |
... | ... | |
98 | 101 |
protected void doPut(HttpServletRequest request, |
99 | 102 |
HttpServletResponse response) throws ServletException, IOException { |
100 | 103 |
System.out.println("HTTP Verb: PUT"); |
104 |
logMetacat.info("D1RestServlet.doPut - HTTP Verb: PUT"); |
|
101 | 105 |
handler = createHandler(request, response); |
102 | 106 |
handler.handle(D1ResourceHandler.PUT); |
103 | 107 |
} |
... | ... | |
107 | 111 |
protected void doHead(HttpServletRequest request, |
108 | 112 |
HttpServletResponse response) throws ServletException, IOException { |
109 | 113 |
System.out.println("HTTP Verb: HEAD"); |
114 |
logMetacat.info("D1RestServlet.doHead - HTTP Verb: HEAD"); |
|
110 | 115 |
handler = createHandler(request, response); |
111 | 116 |
handler.handle(D1ResourceHandler.HEAD); |
112 | 117 |
} |
Also available in: Unified diff
Add the debug statement.