portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/request JetspeedRequestContext.java
Date Sun, 01 Aug 2004 15:46:55 GMT
weaver      2004/08/01 08:46:55

  Modified:    portal/src/java/org/apache/jetspeed/request
                        JetspeedRequestContext.java
  Log:
  Engine now extends org.apache.pluto.services.factory.FactoryManagerService.  We now assemble
Pluto factories with spring.
  
  Revision  Changes    Path
  1.26      +3 -3      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/request/JetspeedRequestContext.java
  
  Index: JetspeedRequestContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/request/JetspeedRequestContext.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- JetspeedRequestContext.java	21 Jul 2004 20:38:35 -0000	1.25
  +++ JetspeedRequestContext.java	1 Aug 2004 15:46:55 -0000	1.26
  @@ -29,6 +29,7 @@
   import javax.servlet.http.HttpServletResponse;
   import javax.servlet.http.HttpSession;
   
  +import org.apache.jetspeed.Jetspeed;
   import org.apache.jetspeed.aggregator.ContentDispatcher;
   import org.apache.jetspeed.capabilities.CapabilityMap;
   import org.apache.jetspeed.container.session.NavigationalState;
  @@ -40,7 +41,6 @@
   import org.apache.jetspeed.om.impl.LanguageImpl;
   import org.apache.jetspeed.om.page.Page;
   import org.apache.jetspeed.profiler.ProfileLocator;
  -import org.apache.jetspeed.services.factory.FactoryManager;
   import org.apache.jetspeed.userinfo.UserInfoManager;
   import org.apache.pluto.om.common.Language;
   import org.apache.pluto.om.common.LanguageSet;
  @@ -288,7 +288,7 @@
        */
       public HttpServletRequest getRequestForWindow( PortletWindow window )
       {
  -        ServletRequestFactory reqFac = (ServletRequestFactory) FactoryManager
  +        ServletRequestFactory reqFac = (ServletRequestFactory) Jetspeed.getEngine()
                   .getFactory(javax.servlet.http.HttpServletRequest.class);
           HttpServletRequest requestWrapper = reqFac.getServletRequest(request, window);
           
  @@ -317,7 +317,7 @@
        */
       public HttpServletResponse getResponseForWindow( PortletWindow window )
       {
  -        ServletResponseFactory rspFac = (ServletResponseFactory) FactoryManager.getFactory(HttpServletResponse.class);
  +        ServletResponseFactory rspFac = (ServletResponseFactory) Jetspeed.getEngine().getFactory(HttpServletResponse.class);
           HttpServletResponse wrappedResponse = rspFac.getServletResponse(response);
           return wrappedResponse;
       }
  
  
  

---------------------------------------------------------------------
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