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  public class ControllerConfigWrapper extends ControllerConfig {
28  
29      /**
30       * The wrapped config
31       */
32      protected ControllerConfig config;
33  
34      public ControllerConfigWrapper(ControllerConfig config) {
35          this.config = config;
36      }
37  
38      @Override
39      public int getBufferSize() {
40          return config.getBufferSize();
41      }
42  
43      @Override
44      public void setBufferSize(int bufferSize) {
45          config.setBufferSize(bufferSize);
46      }
47  
48      @Override
49      public String getContentType() {
50          return config.getContentType();
51      }
52  
53      @Override
54      public void setContentType(String contentType) {
55          config.setContentType(contentType);
56      }
57  
58      @Override
59      public String getCatalog() {
60          return config.getCatalog();
61      }
62  
63      @Override
64      public void setCatalog(String catalog) {
65          config.setCatalog(catalog);
66      }
67  
68      @Override
69      public String getCommand() {
70          return config.getCommand();
71      }
72  
73      @Override
74      public void setCommand(String command) {
75          config.setCommand(command);
76      }
77  
78      @Override
79      public String getForwardPattern() {
80          return config.getForwardPattern();
81      }
82  
83      @Override
84      public void setForwardPattern(String forwardPattern) {
85          config.setForwardPattern(forwardPattern);
86      }
87  
88      @Override
89      public boolean getInputForward() {
90          return config.getInputForward();
91      }
92  
93      @Override
94      public void setInputForward(boolean inputForward) {
95          config.setInputForward(inputForward);
96      }
97  
98      @Override
99      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 }