1 19 20 package org.netbeans.modules.web.jspparser_ext; 21 22 import javax.servlet.ServletContext ; 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 33 public class OptionsImpl implements Options { 34 35 38 private TldLocationsCache tldLocationsCache = null; 39 40 43 private JspConfig jspConfig = null; 44 45 48 private TagPluginManager tagPluginManager = null; 49 50 51 public OptionsImpl(ServletContext 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 throw new UnsupportedOperationException (); 64 } 65 66 public String getClassPath() { 67 throw new UnsupportedOperationException (); 69 } 70 71 public String getCompiler() { 72 return null; 75 } 76 77 public boolean getDevelopment() { 78 return true; 79 } 80 81 public boolean getFork() { 82 throw new UnsupportedOperationException (); 84 } 85 86 public String getIeClassId() { 87 return JspC.DEFAULT_IE_CLASS_ID; 88 } 89 90 public String getJavaEncoding() { 91 throw new UnsupportedOperationException (); 93 } 95 96 public JspConfig getJspConfig() { 97 return jspConfig; 98 } 99 100 public boolean getKeepGenerated() { 101 throw new UnsupportedOperationException (); 103 } 104 105 public boolean getTrimSpaces() { 106 throw new UnsupportedOperationException (); 108 } 109 110 public boolean genStringAsCharArray() { 111 throw new UnsupportedOperationException (); 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 getScratchDir() { 124 throw new UnsupportedOperationException (); 126 } 127 128 public boolean getSendErrorToClient() { 129 throw new UnsupportedOperationException (); 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 throw new UnsupportedOperationException (); 144 } 146 147 public boolean isSmapDumped() { 148 throw new UnsupportedOperationException (); 150 } 151 152 public boolean isSmapSuppressed() { 153 throw new UnsupportedOperationException (); 155 } 156 157 public boolean isXpoweredBy() { 158 throw new UnsupportedOperationException (); 160 } 161 162 public boolean getErrorOnUseBeanInvalidClassAttribute() { 163 throw new UnsupportedOperationException (); 165 } 166 167 public int getModificationTestInterval(){ 168 throw new UnsupportedOperationException (); 170 } 171 172 public String getCompilerSourceVM(){ 173 throw new UnsupportedOperationException (); 175 } 176 177 public String getCompilerTargetVM(){ 178 throw new UnsupportedOperationException (); 180 } 181 182 public int getInitialCapacity(){ 183 throw new UnsupportedOperationException (); 184 } 185 186 public boolean getUsePrecompiled(){ 187 return false; 188 } 189 190 public String getSystemClassPath(){ 191 throw new UnsupportedOperationException (); 192 } 193 194 public boolean isTldValidationEnabled() { 195 return false; 196 } 197 198 } 199 | Popular Tags |