001/**
002 * Copyright 2015 DuraSpace, Inc.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.fcrepo.http.commons.webxml.bind;
017
018import javax.xml.bind.annotation.XmlElement;
019import javax.xml.bind.annotation.XmlRootElement;
020
021/**
022 * <p>FilterMapping class.</p>
023 *
024 * @author awoods
025 */
026@XmlRootElement(namespace = "http://java.sun.com/xml/ns/javaee",
027        name = "filter-mapping")
028public class FilterMapping extends UrlMappable {
029
030    @XmlElement(namespace = "http://java.sun.com/xml/ns/javaee",
031            name = "filter-name")
032    String filterName;
033
034    @XmlElement(namespace = "http://java.sun.com/xml/ns/javaee",
035            name = "servlet-name")
036    String servletName;
037
038    @XmlElement(namespace = "http://java.sun.com/xml/ns/javaee",
039            name = "dispatcher")
040    String dispatcher;
041
042    public String filterName() {
043        return this.filterName;
044    }
045
046    public String servletName() {
047        return this.servletName;
048    }
049
050    public String dispatcher() {
051        return this.dispatcher;
052    }
053
054}