001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.util;
022:
023: /**
024: * <a href="ParamUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class ParamUtil_IW {
030: public static ParamUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public boolean getBoolean(javax.servlet.ServletRequest req,
035: java.lang.String param) {
036: return ParamUtil.getBoolean(req, param);
037: }
038:
039: public boolean getBoolean(javax.servlet.ServletRequest req,
040: java.lang.String param, boolean defaultValue) {
041: return ParamUtil.getBoolean(req, param, defaultValue);
042: }
043:
044: public boolean[] getBooleanValues(javax.servlet.ServletRequest req,
045: java.lang.String param) {
046: return ParamUtil.getBooleanValues(req, param);
047: }
048:
049: public boolean[] getBooleanValues(javax.servlet.ServletRequest req,
050: java.lang.String param, boolean[] defaultValue) {
051: return ParamUtil.getBooleanValues(req, param, defaultValue);
052: }
053:
054: public java.util.Date getDate(javax.servlet.ServletRequest req,
055: java.lang.String param, java.text.DateFormat df) {
056: return ParamUtil.getDate(req, param, df);
057: }
058:
059: public java.util.Date getDate(javax.servlet.ServletRequest req,
060: java.lang.String param, java.text.DateFormat df,
061: java.util.Date defaultValue) {
062: return ParamUtil.getDate(req, param, df, defaultValue);
063: }
064:
065: public double getDouble(javax.servlet.ServletRequest req,
066: java.lang.String param) {
067: return ParamUtil.getDouble(req, param);
068: }
069:
070: public double getDouble(javax.servlet.ServletRequest req,
071: java.lang.String param, double defaultValue) {
072: return ParamUtil.getDouble(req, param, defaultValue);
073: }
074:
075: public double[] getDoubleValues(javax.servlet.ServletRequest req,
076: java.lang.String param) {
077: return ParamUtil.getDoubleValues(req, param);
078: }
079:
080: public double[] getDoubleValues(javax.servlet.ServletRequest req,
081: java.lang.String param, double[] defaultValue) {
082: return ParamUtil.getDoubleValues(req, param, defaultValue);
083: }
084:
085: public float getFloat(javax.servlet.ServletRequest req,
086: java.lang.String param) {
087: return ParamUtil.getFloat(req, param);
088: }
089:
090: public float getFloat(javax.servlet.ServletRequest req,
091: java.lang.String param, float defaultValue) {
092: return ParamUtil.getFloat(req, param, defaultValue);
093: }
094:
095: public float[] getFloatValues(javax.servlet.ServletRequest req,
096: java.lang.String param) {
097: return ParamUtil.getFloatValues(req, param);
098: }
099:
100: public float[] getFloatValues(javax.servlet.ServletRequest req,
101: java.lang.String param, float[] defaultValue) {
102: return ParamUtil.getFloatValues(req, param, defaultValue);
103: }
104:
105: public int getInteger(javax.servlet.ServletRequest req,
106: java.lang.String param) {
107: return ParamUtil.getInteger(req, param);
108: }
109:
110: public int getInteger(javax.servlet.ServletRequest req,
111: java.lang.String param, int defaultValue) {
112: return ParamUtil.getInteger(req, param, defaultValue);
113: }
114:
115: public int[] getIntegerValues(javax.servlet.ServletRequest req,
116: java.lang.String param) {
117: return ParamUtil.getIntegerValues(req, param);
118: }
119:
120: public int[] getIntegerValues(javax.servlet.ServletRequest req,
121: java.lang.String param, int[] defaultValue) {
122: return ParamUtil.getIntegerValues(req, param, defaultValue);
123: }
124:
125: public long getLong(javax.servlet.ServletRequest req,
126: java.lang.String param) {
127: return ParamUtil.getLong(req, param);
128: }
129:
130: public long getLong(javax.servlet.ServletRequest req,
131: java.lang.String param, long defaultValue) {
132: return ParamUtil.getLong(req, param, defaultValue);
133: }
134:
135: public long[] getLongValues(javax.servlet.ServletRequest req,
136: java.lang.String param) {
137: return ParamUtil.getLongValues(req, param);
138: }
139:
140: public long[] getLongValues(javax.servlet.ServletRequest req,
141: java.lang.String param, long[] defaultValue) {
142: return ParamUtil.getLongValues(req, param, defaultValue);
143: }
144:
145: public short getShort(javax.servlet.ServletRequest req,
146: java.lang.String param) {
147: return ParamUtil.getShort(req, param);
148: }
149:
150: public short getShort(javax.servlet.ServletRequest req,
151: java.lang.String param, short defaultValue) {
152: return ParamUtil.getShort(req, param, defaultValue);
153: }
154:
155: public short[] getShortValues(javax.servlet.ServletRequest req,
156: java.lang.String param) {
157: return ParamUtil.getShortValues(req, param);
158: }
159:
160: public short[] getShortValues(javax.servlet.ServletRequest req,
161: java.lang.String param, short[] defaultValue) {
162: return ParamUtil.getShortValues(req, param, defaultValue);
163: }
164:
165: public java.lang.String getString(javax.servlet.ServletRequest req,
166: java.lang.String param) {
167: return ParamUtil.getString(req, param);
168: }
169:
170: public java.lang.String getString(javax.servlet.ServletRequest req,
171: java.lang.String param, java.lang.String defaultValue) {
172: return ParamUtil.getString(req, param, defaultValue);
173: }
174:
175: public boolean get(javax.servlet.ServletRequest req,
176: java.lang.String param, boolean defaultValue) {
177: return ParamUtil.get(req, param, defaultValue);
178: }
179:
180: public java.util.Date get(javax.servlet.ServletRequest req,
181: java.lang.String param, java.text.DateFormat df,
182: java.util.Date defaultValue) {
183: return ParamUtil.get(req, param, df, defaultValue);
184: }
185:
186: public double get(javax.servlet.ServletRequest req,
187: java.lang.String param, double defaultValue) {
188: return ParamUtil.get(req, param, defaultValue);
189: }
190:
191: public float get(javax.servlet.ServletRequest req,
192: java.lang.String param, float defaultValue) {
193: return ParamUtil.get(req, param, defaultValue);
194: }
195:
196: public int get(javax.servlet.ServletRequest req,
197: java.lang.String param, int defaultValue) {
198: return ParamUtil.get(req, param, defaultValue);
199: }
200:
201: public long get(javax.servlet.ServletRequest req,
202: java.lang.String param, long defaultValue) {
203: return ParamUtil.get(req, param, defaultValue);
204: }
205:
206: public short get(javax.servlet.ServletRequest req,
207: java.lang.String param, short defaultValue) {
208: return ParamUtil.get(req, param, defaultValue);
209: }
210:
211: public java.lang.String get(javax.servlet.ServletRequest req,
212: java.lang.String param, java.lang.String defaultValue) {
213: return ParamUtil.get(req, param, defaultValue);
214: }
215:
216: public void print(javax.servlet.ServletRequest req) {
217: ParamUtil.print(req);
218: }
219:
220: public boolean getBoolean(javax.portlet.PortletRequest req,
221: java.lang.String param) {
222: return ParamUtil.getBoolean(req, param);
223: }
224:
225: public boolean getBoolean(javax.portlet.PortletRequest req,
226: java.lang.String param, boolean defaultValue) {
227: return ParamUtil.getBoolean(req, param, defaultValue);
228: }
229:
230: public boolean[] getBooleanValues(javax.portlet.PortletRequest req,
231: java.lang.String param) {
232: return ParamUtil.getBooleanValues(req, param);
233: }
234:
235: public boolean[] getBooleanValues(javax.portlet.PortletRequest req,
236: java.lang.String param, boolean[] defaultValue) {
237: return ParamUtil.getBooleanValues(req, param, defaultValue);
238: }
239:
240: public java.util.Date getDate(javax.portlet.PortletRequest req,
241: java.lang.String param, java.text.DateFormat df) {
242: return ParamUtil.getDate(req, param, df);
243: }
244:
245: public java.util.Date getDate(javax.portlet.PortletRequest req,
246: java.lang.String param, java.text.DateFormat df,
247: java.util.Date defaultValue) {
248: return ParamUtil.getDate(req, param, df, defaultValue);
249: }
250:
251: public double getDouble(javax.portlet.PortletRequest req,
252: java.lang.String param) {
253: return ParamUtil.getDouble(req, param);
254: }
255:
256: public double getDouble(javax.portlet.PortletRequest req,
257: java.lang.String param, double defaultValue) {
258: return ParamUtil.getDouble(req, param, defaultValue);
259: }
260:
261: public double[] getDoubleValues(javax.portlet.PortletRequest req,
262: java.lang.String param) {
263: return ParamUtil.getDoubleValues(req, param);
264: }
265:
266: public double[] getDoubleValues(javax.portlet.PortletRequest req,
267: java.lang.String param, double[] defaultValue) {
268: return ParamUtil.getDoubleValues(req, param, defaultValue);
269: }
270:
271: public float getFloat(javax.portlet.PortletRequest req,
272: java.lang.String param) {
273: return ParamUtil.getFloat(req, param);
274: }
275:
276: public float getFloat(javax.portlet.PortletRequest req,
277: java.lang.String param, float defaultValue) {
278: return ParamUtil.getFloat(req, param, defaultValue);
279: }
280:
281: public float[] getFloatValues(javax.portlet.PortletRequest req,
282: java.lang.String param) {
283: return ParamUtil.getFloatValues(req, param);
284: }
285:
286: public float[] getFloatValues(javax.portlet.PortletRequest req,
287: java.lang.String param, float[] defaultValue) {
288: return ParamUtil.getFloatValues(req, param, defaultValue);
289: }
290:
291: public int getInteger(javax.portlet.PortletRequest req,
292: java.lang.String param) {
293: return ParamUtil.getInteger(req, param);
294: }
295:
296: public int getInteger(javax.portlet.PortletRequest req,
297: java.lang.String param, int defaultValue) {
298: return ParamUtil.getInteger(req, param, defaultValue);
299: }
300:
301: public int[] getIntegerValues(javax.portlet.PortletRequest req,
302: java.lang.String param) {
303: return ParamUtil.getIntegerValues(req, param);
304: }
305:
306: public int[] getIntegerValues(javax.portlet.PortletRequest req,
307: java.lang.String param, int[] defaultValue) {
308: return ParamUtil.getIntegerValues(req, param, defaultValue);
309: }
310:
311: public long getLong(javax.portlet.PortletRequest req,
312: java.lang.String param) {
313: return ParamUtil.getLong(req, param);
314: }
315:
316: public long getLong(javax.portlet.PortletRequest req,
317: java.lang.String param, long defaultValue) {
318: return ParamUtil.getLong(req, param, defaultValue);
319: }
320:
321: public long[] getLongValues(javax.portlet.PortletRequest req,
322: java.lang.String param) {
323: return ParamUtil.getLongValues(req, param);
324: }
325:
326: public long[] getLongValues(javax.portlet.PortletRequest req,
327: java.lang.String param, long[] defaultValue) {
328: return ParamUtil.getLongValues(req, param, defaultValue);
329: }
330:
331: public short getShort(javax.portlet.PortletRequest req,
332: java.lang.String param) {
333: return ParamUtil.getShort(req, param);
334: }
335:
336: public short getShort(javax.portlet.PortletRequest req,
337: java.lang.String param, short defaultValue) {
338: return ParamUtil.getShort(req, param, defaultValue);
339: }
340:
341: public short[] getShortValues(javax.portlet.PortletRequest req,
342: java.lang.String param) {
343: return ParamUtil.getShortValues(req, param);
344: }
345:
346: public short[] getShortValues(javax.portlet.PortletRequest req,
347: java.lang.String param, short[] defaultValue) {
348: return ParamUtil.getShortValues(req, param, defaultValue);
349: }
350:
351: public java.lang.String getString(javax.portlet.PortletRequest req,
352: java.lang.String param) {
353: return ParamUtil.getString(req, param);
354: }
355:
356: public java.lang.String getString(javax.portlet.PortletRequest req,
357: java.lang.String param, java.lang.String defaultValue) {
358: return ParamUtil.getString(req, param, defaultValue);
359: }
360:
361: public boolean get(javax.portlet.PortletRequest req,
362: java.lang.String param, boolean defaultValue) {
363: return ParamUtil.get(req, param, defaultValue);
364: }
365:
366: public java.util.Date get(javax.portlet.PortletRequest req,
367: java.lang.String param, java.text.DateFormat df,
368: java.util.Date defaultValue) {
369: return ParamUtil.get(req, param, df, defaultValue);
370: }
371:
372: public double get(javax.portlet.PortletRequest req,
373: java.lang.String param, double defaultValue) {
374: return ParamUtil.get(req, param, defaultValue);
375: }
376:
377: public float get(javax.portlet.PortletRequest req,
378: java.lang.String param, float defaultValue) {
379: return ParamUtil.get(req, param, defaultValue);
380: }
381:
382: public int get(javax.portlet.PortletRequest req,
383: java.lang.String param, int defaultValue) {
384: return ParamUtil.get(req, param, defaultValue);
385: }
386:
387: public long get(javax.portlet.PortletRequest req,
388: java.lang.String param, long defaultValue) {
389: return ParamUtil.get(req, param, defaultValue);
390: }
391:
392: public short get(javax.portlet.PortletRequest req,
393: java.lang.String param, short defaultValue) {
394: return ParamUtil.get(req, param, defaultValue);
395: }
396:
397: public java.lang.String get(javax.portlet.PortletRequest req,
398: java.lang.String param, java.lang.String defaultValue) {
399: return ParamUtil.get(req, param, defaultValue);
400: }
401:
402: public void print(javax.portlet.PortletRequest req) {
403: ParamUtil.print(req);
404: }
405:
406: private ParamUtil_IW() {
407: }
408:
409: private static ParamUtil_IW _instance = new ParamUtil_IW();
410: }
|