KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > web > ServletFilterMapping


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.deployment.web;
25
26 import java.util.Set JavaDoc;
27 import java.util.List JavaDoc;
28
29 /** Servlet filter objects */
30 public interface ServletFilterMapping {
31
32     public static String JavaDoc TARGET_TYPE_URLPATTERN = "URLPattern";
33     public static String JavaDoc TARGET_TYPE_SERVLET = "Servlet";
34
35     public static String JavaDoc INCLUDE = "INCLUDE";
36     public static String JavaDoc REQUEST = "REQUEST";
37     public static String JavaDoc FORWARD = "FORWARD";
38
39     public void setName(String JavaDoc name);
40     public String JavaDoc getName();
41
42     public void setTargetType(String JavaDoc type);
43     public String JavaDoc getTargetType();
44     public boolean isURLPatternTarget();
45     public boolean isServletNameTarget();
46
47     public void setTarget(String JavaDoc type);
48     public String JavaDoc getTarget();
49
50     public void addDispatcher(String JavaDoc dispatcher);
51     public Set JavaDoc getDispatchers();
52
53     public void addURLPattern(String JavaDoc urlPattern);
54     public List JavaDoc<String JavaDoc> getURLPatterns();
55     public void addServletName(String JavaDoc servletName);
56     public List JavaDoc<String JavaDoc> getServletNames();
57 }
58
Popular Tags