CommunityManagerWSFilter.java :  » Portal » Open-Portal » com » sun » portal » community » filter » Java Open Source

Java Open Source » Portal » Open Portal 
Open Portal » com » sun » portal » community » filter » CommunityManagerWSFilter.java
/**
 * Copyright 2003 Sun Microsystems, Inc. All
 * rights reserved. Use of this product is subject
 * to license terms. Federal Acquisitions:
 * Commercial Software -- Government Users
 * Subject to Standard License Terms and
 * Conditions.
 *
 * Sun, Sun Microsystems, the Sun logo, and Sun ONE
 * are trademarks or registered trademarks of Sun Microsystems,
 * Inc. in the United States and other countries.
 */
 
package com.sun.portal.community.filter;

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

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CommunityManagerWSFilter implements Filter {

    private ServletContext servletContext = null;
    
    public void init(FilterConfig filterConfig) throws ServletException {
  servletContext = filterConfig.getServletContext();
    }

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException {
  CommunityManagerWSThreadLocalizer.set((HttpServletRequest)request, (HttpServletResponse)response);
  chain.doFilter(request, response);
    }

    public void destroy() {
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.