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 * @deprecated KNS Struts deprecated, use KRAD and the Spring MVC framework. 028 */ 029 @Deprecated 030 public class ControllerConfigWrapper extends ControllerConfig { 031 032 /** 033 * The wrapped config 034 */ 035 protected ControllerConfig config; 036 037 public ControllerConfigWrapper(ControllerConfig config) { 038 this.config = config; 039 } 040 041 @Override 042 public int getBufferSize() { 043 return config.getBufferSize(); 044 } 045 046 @Override 047 public void setBufferSize(int bufferSize) { 048 config.setBufferSize(bufferSize); 049 } 050 051 @Override 052 public String getContentType() { 053 return config.getContentType(); 054 } 055 056 @Override 057 public void setContentType(String contentType) { 058 config.setContentType(contentType); 059 } 060 061 @Override 062 public String getCatalog() { 063 return config.getCatalog(); 064 } 065 066 @Override 067 public void setCatalog(String catalog) { 068 config.setCatalog(catalog); 069 } 070 071 @Override 072 public String getCommand() { 073 return config.getCommand(); 074 } 075 076 @Override 077 public void setCommand(String command) { 078 config.setCommand(command); 079 } 080 081 @Override 082 public String getForwardPattern() { 083 return config.getForwardPattern(); 084 } 085 086 @Override 087 public void setForwardPattern(String forwardPattern) { 088 config.setForwardPattern(forwardPattern); 089 } 090 091 @Override 092 public boolean getInputForward() { 093 return config.getInputForward(); 094 } 095 096 @Override 097 public void setInputForward(boolean inputForward) { 098 config.setInputForward(inputForward); 099 } 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 }