KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > web > CacheMapping


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * CacheMapping.java
21  *
22  * Created on November 15, 2004, 4:26 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.web;
26
27 import org.netbeans.modules.j2ee.sun.dd.api.VersionNotSupportedException;
28
29 public interface CacheMapping extends org.netbeans.modules.j2ee.sun.dd.api.CommonDDBean {
30
31         public static final String JavaDoc SERVLET_NAME = "ServletName"; // NOI18N
32
public static final String JavaDoc URL_PATTERN = "UrlPattern"; // NOI18N
33
public static final String JavaDoc CACHE_HELPER_REF = "CacheHelperRef"; // NOI18N
34
public static final String JavaDoc DISPATCHER = "Dispatcher"; // NOI18N
35
public static final String JavaDoc TIMEOUT = "Timeout"; // NOI18N
36
public static final String JavaDoc TIMEOUTNAME = "TimeoutName"; // NOI18N
37
public static final String JavaDoc TIMEOUTSCOPE = "TimeoutScope"; // NOI18N
38
public static final String JavaDoc REFRESH_FIELD = "RefreshField"; // NOI18N
39
public static final String JavaDoc REFRESHFIELDNAME = "RefreshFieldName"; // NOI18N
40
public static final String JavaDoc REFRESHFIELDSCOPE = "RefreshFieldScope"; // NOI18N
41
public static final String JavaDoc HTTP_METHOD = "HttpMethod"; // NOI18N
42
public static final String JavaDoc KEY_FIELD = "KeyField"; // NOI18N
43
public static final String JavaDoc KEYFIELDNAME = "KeyFieldName"; // NOI18N
44
public static final String JavaDoc KEYFIELDSCOPE = "KeyFieldScope"; // NOI18N
45
public static final String JavaDoc CONSTRAINT_FIELD = "ConstraintField"; // NOI18N
46

47     
48         /** Setter for servlet-name property
49          * @param value property value
50          */

51     public void setServletName(String JavaDoc value);
52         /** Getter for servlet-name property.
53          * @return property value
54          */

55     public String JavaDoc getServletName();
56         /** Setter for url-pattern property
57          * @param value property value
58          */

59     public void setUrlPattern(String JavaDoc value);
60         /** Getter for url-pattern property.
61          * @return property value
62          */

63     public String JavaDoc getUrlPattern();
64         /** Setter for cache-helper-ref property
65          * @param value property value
66          */

67     public void setCacheHelperRef(String JavaDoc value);
68         /** Getter for cache-helper-ref property.
69          * @return property value
70          */

71     public String JavaDoc getCacheHelperRef();
72         
73     public void setDispatcher(int index, String JavaDoc value) throws VersionNotSupportedException;
74     public String JavaDoc getDispatcher(int index) throws VersionNotSupportedException;
75     public int sizeDispatcher() throws VersionNotSupportedException;
76     public void setDispatcher(String JavaDoc[] value) throws VersionNotSupportedException;
77     public String JavaDoc[] getDispatcher() throws VersionNotSupportedException;
78     public int addDispatcher(String JavaDoc value) throws VersionNotSupportedException;
79     public int removeDispatcher(String JavaDoc value) throws VersionNotSupportedException;
80
81         /** Setter for timeout property
82          * @param value property value
83          */

84     public void setTimeout(String JavaDoc value);
85         /** Getter for timeout property.
86          * @return property value
87          */

88     public String JavaDoc getTimeout();
89         /** Setter for name attribute of timeout
90          * @param value attribute value
91          */

92     public void setTimeoutName(java.lang.String JavaDoc value);
93         /** Getter for name attribute of timeout
94          * @return attribute value
95          */

96     public java.lang.String JavaDoc getTimeoutName();
97         /** Setter for scope attribute of timeout
98          * @param value attribute value
99          */

100     public void setTimeoutScope(java.lang.String JavaDoc value);
101         /** Getter for scope attribute of timeout
102          * @return attribute value
103          */

104     public java.lang.String JavaDoc getTimeoutScope();
105         /** Setter for refresh-field property
106          * @param value property value
107          */

108     public void setRefreshField(boolean value);
109         /** Check for refresh-field property
110          * @return boolean value
111          */

112     public boolean isRefreshField();
113         /** Setter for name attribute of refresh-field
114          * @param value attribute value
115          */

116     public void setRefreshFieldName(java.lang.String JavaDoc value);
117         /** Getter for name attribute of refresh-field
118          * @return attribute value
119          */

120     public java.lang.String JavaDoc getRefreshFieldName();
121         /** Setter for scope attribute of refresh-field
122          * @param value attribute value
123          */

124     public void setRefreshFieldScope(java.lang.String JavaDoc value);
125         /** Getter for scope attribute of refresh-field
126          * @return attribute value
127          */

128     public java.lang.String JavaDoc getRefreshFieldScope();
129         
130         public void setHttpMethod(int index, String JavaDoc value);
131     public String JavaDoc getHttpMethod(int index);
132     public int sizeHttpMethod();
133     public void setHttpMethod(String JavaDoc[] value);
134     public String JavaDoc[] getHttpMethod();
135     public int addHttpMethod(String JavaDoc value);
136     public int removeHttpMethod(String JavaDoc value);
137
138         public void setKeyField(int index, boolean value);
139     public boolean isKeyField(int index);
140     public int sizeKeyField();
141     public void setKeyField(boolean[] value);
142     public boolean[] getKeyField();
143     public int addKeyField(boolean value);
144     public int removeKeyField(boolean value);
145     public void removeKeyField(int index);
146
147         /** Setter for name attribute of key-field
148          * @param value attribute value
149          */

150         public void setKeyFieldName(int index, java.lang.String JavaDoc value);
151         /** Getter for name attribute of key-field
152          * @return attribute value
153          */

154     public java.lang.String JavaDoc getKeyFieldName(int index);
155
156     public int sizeKeyFieldName();
157         /** Setter for scope attribute of key-field
158          * @param value attribute value
159          */

160     public void setKeyFieldScope(int index, java.lang.String JavaDoc value);
161         /** Getter for scope attribute of key-field
162          * @return attribute value
163          */

164     public java.lang.String JavaDoc getKeyFieldScope(int index);
165
166     public int sizeKeyFieldScope();
167         
168     public void setConstraintField(int index, ConstraintField value);
169     public ConstraintField getConstraintField(int index);
170     public int sizeConstraintField();
171     public void setConstraintField(ConstraintField[] value);
172     public ConstraintField[] getConstraintField();
173     public int addConstraintField(ConstraintField value);
174     public int removeConstraintField(ConstraintField value);
175     public ConstraintField newConstraintField();
176
177 }
178
Popular Tags