001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *    http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     **/
017    package org.apache.geronimo.jasper;
018    
019    import java.io.File;
020    import java.util.Map;
021    
022    import javax.servlet.ServletConfig;
023    import javax.servlet.ServletContext;
024    
025    import org.apache.jasper.EmbeddedServletOptions;
026    import org.apache.jasper.Options;
027    import org.apache.jasper.compiler.JspConfig;
028    import org.apache.jasper.compiler.TagPluginManager;
029    import org.apache.jasper.compiler.TldLocationsCache;
030    
031    public class JspServletOptions implements Options {
032        EmbeddedServletOptions delegate;
033        TldLocationsCache tldLocationsCache;
034    
035        /**
036         * Create an EmbeddedServletOptions object using data available from
037         * ServletConfig and ServletContext.  Most calls are delegated to it.
038         */
039        public JspServletOptions(ServletConfig config, ServletContext context) {
040            delegate = new EmbeddedServletOptions(config, context);
041            tldLocationsCache = new GeronimoTldLocationsCache(context);
042        }
043    
044        public boolean genStringAsCharArray() {
045            return delegate.genStringAsCharArray();
046        }
047    
048        public Map getCache() {
049            return delegate.getCache();
050        }
051    
052        public int getCheckInterval() {
053            return delegate.getCheckInterval();
054        }
055    
056        public boolean getClassDebugInfo() {
057            return delegate.getClassDebugInfo();
058        }
059    
060        public String getClassPath() {
061            return delegate.getClassPath();
062        }
063    
064        public String getCompiler() {
065            return delegate.getCompiler();
066        }
067    
068        public String getCompilerClassName() {
069            return delegate.getCompilerClassName();
070        }
071    
072        public String getCompilerSourceVM() {
073            return delegate.getCompilerSourceVM();
074        }
075    
076        public String getCompilerTargetVM() {
077            return delegate.getCompilerTargetVM();
078        }
079    
080        public boolean getDevelopment() {
081            return delegate.getDevelopment();
082        }
083    
084        public boolean getDisplaySourceFragment() {
085            return delegate.getDisplaySourceFragment();
086        }
087    
088        public boolean getErrorOnUseBeanInvalidClassAttribute() {
089            return delegate.getErrorOnUseBeanInvalidClassAttribute();
090        }
091    
092        public boolean getFork() {
093            return delegate.getFork();
094        }
095    
096        public String getIeClassId() {
097            return delegate.getIeClassId();
098        }
099    
100        public String getJavaEncoding() {
101            return delegate.getJavaEncoding();
102        }
103    
104        public JspConfig getJspConfig() {
105            return delegate.getJspConfig();
106        }
107    
108        public boolean getKeepGenerated() {
109            return delegate.getKeepGenerated();
110        }
111    
112        public boolean getMappedFile() {
113            return delegate.getMappedFile();
114        }
115    
116        public int getModificationTestInterval() {
117            return delegate.getModificationTestInterval();
118        }
119    
120        public File getScratchDir() {
121            return delegate.getScratchDir();
122        }
123    
124        public boolean getSendErrorToClient() {
125            return delegate.getSendErrorToClient();
126        }
127    
128        public TagPluginManager getTagPluginManager() {
129            return delegate.getTagPluginManager();
130        }
131    
132        public TldLocationsCache getTldLocationsCache() {
133            return tldLocationsCache;
134        }
135    
136        public boolean getTrimSpaces() {
137            return delegate.getTrimSpaces();
138        }
139    
140        public boolean isCaching() {
141            return delegate.isCaching();
142        }
143    
144        public boolean isPoolingEnabled() {
145            return delegate.isPoolingEnabled();
146        }
147    
148        public boolean isSmapDumped() {
149            return delegate.isSmapDumped();
150        }
151    
152        public boolean isSmapSuppressed() {
153            return delegate.isSmapSuppressed();
154        }
155    
156        public boolean isXpoweredBy() {
157            return delegate.isXpoweredBy();
158        }
159    
160    }