01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wicket.threadtest.apps.app2;
18:
19: import java.io.IOException;
20:
21: import javax.servlet.Filter;
22: import javax.servlet.FilterChain;
23: import javax.servlet.FilterConfig;
24: import javax.servlet.ServletException;
25: import javax.servlet.ServletRequest;
26: import javax.servlet.ServletResponse;
27:
28: import org.apache.commons.logging.Log;
29: import org.apache.commons.logging.LogFactory;
30:
31: public class TestFilter implements Filter {
32:
33: private static final Log log = LogFactory.getLog(TestFilter.class);
34:
35: /**
36: * @see javax.servlet.Filter#destroy()
37: */
38: public void destroy() {
39: }
40:
41: /**
42: * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest,
43: * javax.servlet.ServletResponse, javax.servlet.FilterChain)
44: */
45: public void doFilter(ServletRequest request,
46: ServletResponse response, FilterChain chain)
47: throws IOException, ServletException {
48:
49: chain.doFilter(request, response);
50:
51: Pool.release();
52: }
53:
54: /**
55: * @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
56: */
57: public void init(FilterConfig config) throws ServletException {
58: }
59:
60: }
|