KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > util > DefaultRequestHelperFactory


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.util;
13
14 import javax.servlet.http.HttpServletRequest JavaDoc;
15 import javax.servlet.http.HttpServletResponse JavaDoc;
16 import javax.servlet.jsp.PageContext JavaDoc;
17
18
19 /**
20  * Default RequestHelperFactory implementation. Returns instaces of {@link DefaultRequestHelper}.
21  * @author Fabrizio Giustina
22  * @version $Revision: 720 $ ($Author: fgiust $)
23  */

24 public class DefaultRequestHelperFactory implements RequestHelperFactory
25 {
26
27     /**
28      * @see org.displaytag.util.RequestHelperFactory#getRequestHelperInstance(javax.servlet.jsp.PageContext)
29      */

30     public RequestHelper getRequestHelperInstance(PageContext JavaDoc pageContext)
31     {
32         return new DefaultRequestHelper(
33             (HttpServletRequest JavaDoc) pageContext.getRequest(),
34             (HttpServletResponse JavaDoc) pageContext.getResponse());
35     }
36
37 }
Popular Tags