/*
 *  Copyright 2011 Eric F. Savage, code@efsavage.com
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package com.ajah.servlet;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * Simple skeleton class that adds some logging and implements extra methods.
 * 
 * @author Eric F. Savage <code@efsavage.com>
 * 
 */
public abstract class AjahFilter implements Filter {

	private static final Logger log = Logger.getLogger(AjahFilter.class.getName());

	/**
	 * Does nothing except log.
	 * 
	 * @see javax.servlet.Filter#destroy()
	 */
	@Override
	public void destroy() {
		log.finer(getClass().getName() + " destroyed");
	}

	/**
	 * Does nothing except log and
	 * {@link FilterChain#doFilter(ServletRequest, ServletResponse)}.
	 * 
	 * @see javax.servlet.Filter#init(FilterConfig)
	 */
	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
		chain.doFilter(request, response);
	}

	/**
	 * Does nothing except log.
	 * 
	 * @see javax.servlet.Filter#init(FilterConfig)
	 */
	@Override
	public void init(FilterConfig arg0) throws ServletException {
		log.finer(getClass().getName() + " initialized");
	}

}
@@ -929,16 +929,109 @@
 esponse;
+%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;
 %0A%0A/**%0A *
@@ -1778,16 +1778,884 @@
 ption %7B%0A
+%09%09doFilter((HttpServletRequest) request, (HttpServletResponse) response, chain);%0A%09%7D%0A%0A%09/**%0A%09 * Does nothing except log and%0A%09 * %7B@link FilterChain#doFilter(ServletRequest, ServletResponse)%7D.%0A%09 * %0A%09 * @param request%0A%09 *            The servlet request. Cannot be null.%0A%09 * @param response%0A%09 *            The servlet response. Cannot be null.%0A%09 * @param chain%0A%09 *            The filter chain. Cannot be null.%0A%09 * @throws ServletException%0A%09 *             If thrown by%0A%09 *             %7B@link FilterChain#doFilter(ServletRequest, ServletResponse)%7D%0A%09 * @throws IOException%0A%09 *             If thrown by%0A%09 *             %7B@link FilterChain#doFilter(ServletRequest, ServletResponse)%7D%0A%09 * %0A%09 * @see javax.servlet.Filter#init(FilterConfig)%0A%09 */%0A%09public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException %7B%0A
 %09%09chain.

add method with casted parameters