View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kns.web.struts.config;
17  
18  import org.apache.struts.config.BaseConfig;
19  import org.apache.struts.config.ControllerConfig;
20  
21  import java.util.Properties;
22  
23  /**
24   * Wrapper which aids specializing Struts ControllerConfig
25   * Delegates all public methods to wrapped ControllerConfig
26   *
27   * @deprecated KNS Struts deprecated, use KRAD and the Spring MVC framework.
28   */
29  @Deprecated
30  public class ControllerConfigWrapper extends ControllerConfig {
31  
32      /**
33       * The wrapped config
34       */
35      protected ControllerConfig config;
36  
37      public ControllerConfigWrapper(ControllerConfig config) {
38          this.config = config;
39      }
40  
41      @Override
42      public int getBufferSize() {
43          return config.getBufferSize();
44      }
45  
46      @Override
47      public void setBufferSize(int bufferSize) {
48          config.setBufferSize(bufferSize);
49      }
50  
51      @Override
52      public String getContentType() {
53          return config.getContentType();
54      }
55  
56      @Override
57      public void setContentType(String contentType) {
58          config.setContentType(contentType);
59      }
60  
61      @Override
62      public String getCatalog() {
63          return config.getCatalog();
64      }
65  
66      @Override
67      public void setCatalog(String catalog) {
68          config.setCatalog(catalog);
69      }
70  
71      @Override
72      public String getCommand() {
73          return config.getCommand();
74      }
75  
76      @Override
77      public void setCommand(String command) {
78          config.setCommand(command);
79      }
80  
81      @Override
82      public String getForwardPattern() {
83          return config.getForwardPattern();
84      }
85  
86      @Override
87      public void setForwardPattern(String forwardPattern) {
88          config.setForwardPattern(forwardPattern);
89      }
90  
91      @Override
92      public boolean getInputForward() {
93          return config.getInputForward();
94      }
95  
96      @Override
97      public void setInputForward(boolean inputForward) {
98          config.setInputForward(inputForward);
99      }
100 
101     @Override
102     public boolean getLocale() {
103         return config.getLocale();
104     }
105 
106     @Override
107     public void setLocale(boolean locale) {
108         config.setLocale(locale);
109     }
110 
111     @Override
112     public String getMaxFileSize() {
113         return config.getMaxFileSize();
114     }
115 
116     @Override
117     public void setMaxFileSize(String maxFileSize) {
118         config.setMaxFileSize(maxFileSize);
119     }
120 
121     @Override
122     public String getMemFileSize() {
123         return config.getMemFileSize();
124     }
125 
126     @Override
127     public void setMemFileSize(String memFileSize) {
128         config.setMemFileSize(memFileSize);
129     }
130 
131     @Override
132     public String getMultipartClass() {
133         return config.getMultipartClass();
134     }
135 
136     @Override
137     public void setMultipartClass(String multipartClass) {
138         config.setMultipartClass(multipartClass);
139     }
140 
141     @Override
142     public boolean getNocache() {
143         return config.getNocache();
144     }
145 
146     @Override
147     public void setNocache(boolean nocache) {
148         config.setNocache(nocache);
149     }
150 
151     @Override
152     public String getPagePattern() {
153         return config.getPagePattern();
154     }
155 
156     @Override
157     public void setPagePattern(String pagePattern) {
158         config.setPagePattern(pagePattern);
159     }
160 
161     @Override
162     public String getProcessorClass() {
163         return config.getProcessorClass();
164     }
165 
166     @Override
167     public void setProcessorClass(String processorClass) {
168         config.setProcessorClass(processorClass);
169     }
170 
171     @Override
172     public String getTempDir() {
173         return config.getTempDir();
174     }
175 
176     @Override
177     public void setTempDir(String tempDir) {
178         config.setTempDir(tempDir);
179     }
180 
181     @Override
182     public String toString() {
183         return config.toString();
184     }
185 
186     @Override
187     public void freeze() {
188         config.freeze();
189     }
190 
191     @Override
192     public void throwIfConfigured() {
193         config.throwIfConfigured();
194     }
195 
196     @Override
197     public void setProperty(String key, String value) {
198         config.setProperty(key, value);
199     }
200 
201     @Override
202     public String getProperty(String key) {
203         return config.getProperty(key);
204     }
205 }