Home » displaytag-1.1.1-src » org » displaytag » util » [javadoc | source]

    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;
   15   import javax.servlet.http.HttpServletResponse;
   16   import javax.servlet.jsp.PageContext;
   17   
   18   
   19   /**
   20    * Default RequestHelperFactory implementation. Returns instaces of {@link DefaultRequestHelper}.
   21    * @author Fabrizio Giustina
   22    * @version $Revision: 1081 $ ($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 pageContext)
   31       {
   32           return new DefaultRequestHelper(
   33               (HttpServletRequest) pageContext.getRequest(),
   34               (HttpServletResponse) pageContext.getResponse());
   35       }
   36   
   37   }

Home » displaytag-1.1.1-src » org » displaytag » util » [javadoc | source]