001 /**
002 * Copyright 2005-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.kns.web.struts.config;
017
018 import org.apache.struts.config.BaseConfig;
019 import org.apache.struts.config.ControllerConfig;
020
021 import java.util.Properties;
022
023 /**
024 * Wrapper which aids specializing Struts ControllerConfig
025 * Delegates all public methods to wrapped ControllerConfig
026 */
027 public class ControllerConfigWrapper extends ControllerConfig {
028
029 /**
030 * The wrapped config
031 */
032 protected ControllerConfig config;
033
034 public ControllerConfigWrapper(ControllerConfig config) {
035 this.config = config;
036 }
037
038 @Override
039 public int getBufferSize() {
040 return config.getBufferSize();
041 }
042
043 @Override
044 public void setBufferSize(int bufferSize) {
045 config.setBufferSize(bufferSize);
046 }
047
048 @Override
049 public String getContentType() {
050 return config.getContentType();
051 }
052
053 @Override
054 public void setContentType(String contentType) {
055 config.setContentType(contentType);
056 }
057
058 @Override
059 public String getCatalog() {
060 return config.getCatalog();
061 }
062
063 @Override
064 public void setCatalog(String catalog) {
065 config.setCatalog(catalog);
066 }
067
068 @Override
069 public String getCommand() {
070 return config.getCommand();
071 }
072
073 @Override
074 public void setCommand(String command) {
075 config.setCommand(command);
076 }
077
078 @Override
079 public String getForwardPattern() {
080 return config.getForwardPattern();
081 }
082
083 @Override
084 public void setForwardPattern(String forwardPattern) {
085 config.setForwardPattern(forwardPattern);
086 }
087
088 @Override
089 public boolean getInputForward() {
090 return config.getInputForward();
091 }
092
093 @Override
094 public void setInputForward(boolean inputForward) {
095 config.setInputForward(inputForward);
096 }
097
098 @Override
099 public boolean getLocale() {
100 return config.getLocale();
101 }
102
103 @Override
104 public void setLocale(boolean locale) {
105 config.setLocale(locale);
106 }
107
108 @Override
109 public String getMaxFileSize() {
110 return config.getMaxFileSize();
111 }
112
113 @Override
114 public void setMaxFileSize(String maxFileSize) {
115 config.setMaxFileSize(maxFileSize);
116 }
117
118 @Override
119 public String getMemFileSize() {
120 return config.getMemFileSize();
121 }
122
123 @Override
124 public void setMemFileSize(String memFileSize) {
125 config.setMemFileSize(memFileSize);
126 }
127
128 @Override
129 public String getMultipartClass() {
130 return config.getMultipartClass();
131 }
132
133 @Override
134 public void setMultipartClass(String multipartClass) {
135 config.setMultipartClass(multipartClass);
136 }
137
138 @Override
139 public boolean getNocache() {
140 return config.getNocache();
141 }
142
143 @Override
144 public void setNocache(boolean nocache) {
145 config.setNocache(nocache);
146 }
147
148 @Override
149 public String getPagePattern() {
150 return config.getPagePattern();
151 }
152
153 @Override
154 public void setPagePattern(String pagePattern) {
155 config.setPagePattern(pagePattern);
156 }
157
158 @Override
159 public String getProcessorClass() {
160 return config.getProcessorClass();
161 }
162
163 @Override
164 public void setProcessorClass(String processorClass) {
165 config.setProcessorClass(processorClass);
166 }
167
168 @Override
169 public String getTempDir() {
170 return config.getTempDir();
171 }
172
173 @Override
174 public void setTempDir(String tempDir) {
175 config.setTempDir(tempDir);
176 }
177
178 @Override
179 public String toString() {
180 return config.toString();
181 }
182
183 @Override
184 public void freeze() {
185 config.freeze();
186 }
187
188 @Override
189 public void throwIfConfigured() {
190 config.throwIfConfigured();
191 }
192
193 @Override
194 public void setProperty(String key, String value) {
195 config.setProperty(key, value);
196 }
197
198 @Override
199 public String getProperty(String key) {
200 return config.getProperty(key);
201 }
202 }