KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > jspparser_ext > OptionsImpl


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 package org.netbeans.modules.web.jspparser_ext;
21
22 import javax.servlet.ServletContext JavaDoc;
23 import org.apache.jasper.JspC;
24 import org.apache.jasper.Options;
25 import org.apache.jasper.compiler.JspConfig;
26 import org.apache.jasper.compiler.TagPluginManager;
27 import org.apache.jasper.compiler.TldLocationsCache;
28
29 /**
30  *
31  * @author Petr Jiricka
32  */

33 public class OptionsImpl implements Options {
34
35     /**
36      * Cache for the TLD locations
37      */

38     private TldLocationsCache tldLocationsCache = null;
39
40     /**
41      * Jsp config information
42      */

43     private JspConfig jspConfig = null;
44
45     /**
46      * TagPluginManager
47      */

48     private TagPluginManager tagPluginManager = null;
49
50     /** Creates a new instance of OptionsImpl */
51     public OptionsImpl(ServletContext JavaDoc context) {
52         tldLocationsCache = new TldLocationsCache(context, this, true);
53         jspConfig = new JspConfig(context);
54         tagPluginManager = new TagPluginManager(context);
55     }
56     
57     public int getCheckInterval() {
58         return 300;
59     }
60     
61     public boolean getClassDebugInfo() {
62         // should not be needed
63
throw new UnsupportedOperationException JavaDoc();
64     }
65     
66     public String JavaDoc getClassPath() {
67         // should not be needed
68
throw new UnsupportedOperationException JavaDoc();
69     }
70     
71     public String JavaDoc getCompiler() {
72         // should not be needed
73
//throw new UnsupportedOperationException();
74
return null;
75     }
76     
77     public boolean getDevelopment() {
78         return true;
79     }
80     
81     public boolean getFork() {
82         // should not be needed
83
throw new UnsupportedOperationException JavaDoc();
84     }
85     
86     public String JavaDoc getIeClassId() {
87         return JspC.DEFAULT_IE_CLASS_ID;
88     }
89     
90     public String JavaDoc getJavaEncoding() {
91         // should not be needed
92
throw new UnsupportedOperationException JavaDoc();
93         //return "UTF-8";
94
}
95     
96     public JspConfig getJspConfig() {
97     return jspConfig;
98     }
99     
100     public boolean getKeepGenerated() {
101         // should not be needed
102
throw new UnsupportedOperationException JavaDoc();
103     }
104     
105     public boolean getTrimSpaces() {
106         // should not be needed
107
throw new UnsupportedOperationException JavaDoc();
108     }
109     
110     public boolean genStringAsCharArray() {
111         // should not be needed
112
throw new UnsupportedOperationException JavaDoc();
113     }
114
115     public boolean getMappedFile() {
116         return false;
117     }
118     
119     public boolean getReloading() {
120         return true;
121     }
122     
123     public java.io.File JavaDoc getScratchDir() {
124         // should not be needed
125
throw new UnsupportedOperationException JavaDoc();
126     }
127     
128     public boolean getSendErrorToClient() {
129         // should not be needed
130
throw new UnsupportedOperationException JavaDoc();
131     }
132     
133     public TagPluginManager getTagPluginManager() {
134         return tagPluginManager;
135     }
136     
137     public TldLocationsCache getTldLocationsCache() {
138         return tldLocationsCache;
139     }
140     
141     public boolean isPoolingEnabled() {
142         // should not be needed
143
throw new UnsupportedOperationException JavaDoc();
144         //return true;
145
}
146     
147     public boolean isSmapDumped() {
148         // should not be needed
149
throw new UnsupportedOperationException JavaDoc();
150     }
151     
152     public boolean isSmapSuppressed() {
153         // should not be needed
154
throw new UnsupportedOperationException JavaDoc();
155     }
156     
157     public boolean isXpoweredBy() {
158         // should not be needed
159
throw new UnsupportedOperationException JavaDoc();
160     }
161     
162     public boolean getErrorOnUseBeanInvalidClassAttribute() {
163         // should not be needed
164
throw new UnsupportedOperationException JavaDoc();
165     }
166
167     public int getModificationTestInterval(){
168         // should not be needed
169
throw new UnsupportedOperationException JavaDoc();
170     }
171     
172     public String JavaDoc getCompilerSourceVM(){
173         // should not be needed
174
throw new UnsupportedOperationException JavaDoc();
175     }
176     
177     public String JavaDoc getCompilerTargetVM(){
178         // should not be needed
179
throw new UnsupportedOperationException JavaDoc();
180     }
181     
182     public int getInitialCapacity(){
183         throw new UnsupportedOperationException JavaDoc();
184     }
185     
186     public boolean getUsePrecompiled(){
187         return false;
188     }
189     
190     public String JavaDoc getSystemClassPath(){
191         throw new UnsupportedOperationException JavaDoc();
192     }
193
194     public boolean isTldValidationEnabled() {
195         return false;
196     }
197     
198 }
199
Popular Tags