portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet ServletRequestFactoryImpl.java
Date Thu, 12 Aug 2004 18:42:33 GMT
taylor      2004/08/12 11:42:33

  Modified:    portal/src/java/org/apache/jetspeed/engine/servlet
                        ServletRequestFactoryImpl.java
  Log:
  make extensible
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.5       +8 -4      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestFactoryImpl.java
  
  Index: ServletRequestFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestFactoryImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ServletRequestFactoryImpl.java	5 Aug 2004 04:50:29 -0000	1.4
  +++ ServletRequestFactoryImpl.java	12 Aug 2004 18:42:33 -0000	1.5
  @@ -45,11 +45,15 @@
       {
       }
   
  +    protected HttpServletRequest createRequest(HttpServletRequest request, PortletWindow
window)
  +    {
  +        return new ServletRequestImpl(request, window);        
  +    }
  +    
       public HttpServletRequest getServletRequest(HttpServletRequest request, PortletWindow
window)
       {
  -        // TODO: use pool here
  -        HttpServletRequest servletRequest = new ServletRequestImpl(request, window);
  -
  +        HttpServletRequest servletRequest = createRequest(request, window);
  +        
           // Set page encoding in order to parse the form data correctly        
           String preferedEnc = (String) request.getAttribute(JetspeedRequestContext.PREFERED_CHARACTERENCODING_KEY);
           if (preferedEnc != null)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message