2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.filtervalve.cors.jaxb;
11 import java.io.IOException;
12 import javax.servlet.FilterChain;
13 import javax.servlet.FilterConfig;
14 import javax.servlet.ServletException;
15 import javax.servlet.ServletRequest;
16 import javax.servlet.ServletResponse;
18 public class MockedFilter implements javax.servlet.Filter {
19 private FilterConfig filterConfig;
22 public void init(FilterConfig filterConfig) throws ServletException {
23 this.filterConfig = filterConfig;
26 public FilterConfig getFilterConfig() {
31 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
32 throw new UnsupportedOperationException();
36 public void destroy() {
37 throw new UnsupportedOperationException();