56d851bc3df3d5ee37c6c8ca75ae0448eb69a489
[controller.git] / opendaylight / commons / filter-valve / src / test / java / org / opendaylight / controller / filtervalve / cors / jaxb / MockedFilter.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.filtervalve.cors.jaxb;
10
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;
17
18 public class MockedFilter implements javax.servlet.Filter {
19     private FilterConfig filterConfig;
20
21     @Override
22     public void init(FilterConfig filterConfig) throws ServletException {
23         this.filterConfig = filterConfig;
24     }
25
26     public FilterConfig getFilterConfig() {
27         return filterConfig;
28     }
29
30     @Override
31     public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
32         throw new UnsupportedOperationException();
33     }
34
35     @Override
36     public void destroy() {
37         throw new UnsupportedOperationException();
38     }
39 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.