portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet ServletRequestImpl.java
Date Sat, 22 May 2004 21:29:59 GMT
dlestrat    2004/05/22 14:29:59

  Modified:    portal/src/java/org/apache/jetspeed/engine/servlet
                        ServletRequestImpl.java
  Log:
  Cleaning up. Added logging support.
  
  Revision  Changes    Path
  1.16      +8 -13     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestImpl.java
  
  Index: ServletRequestImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ServletRequestImpl.java	22 May 2004 17:40:11 -0000	1.15
  +++ ServletRequestImpl.java	22 May 2004 21:29:59 -0000	1.16
  @@ -26,6 +26,9 @@
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletRequestWrapper;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   import org.apache.jetspeed.container.url.PortalURL;
   import org.apache.jetspeed.request.JetspeedRequestContext;
   
  @@ -48,6 +51,9 @@
    */
   public class ServletRequestImpl extends HttpServletRequestWrapper
   {
  +    /** Logger */
  +    private static final Log log = LogFactory.getLog(ServletRequestImpl.class);
  +    
       PortletWindow portletWindow = null;
   
       private Map portletParameters;
  @@ -57,7 +63,6 @@
           super(servletRequest);
   
           this.portletWindow = window;
  -        System.out.println("Constructing SRI: " + window.getId());
       }
   
       private HttpServletRequest _getHttpServletRequest()
  @@ -211,23 +216,13 @@
                   PortletApplicationEntity portletAppEntity = portletWindow.getPortletEntity().getPortletApplicationEntity();
                   PortletApplicationDefinition portletAppDef = entity.getPortletDefinition().getPortletApplicationDefinition();
                   
  -                // if (null != portletAppEntity)
                   if (null != portletAppDef)
                   {
  -                    // PortletApplicationDefinition portletAppDef = portletAppEntity.getPortletApplicationDefinition();
                       value = context.getUserInfoMap(portletAppDef.getId());
  -                    if ( value != null )
  -                    {
  -                        System.out.println("_____________HERE0: " + ((Map) value).size());
  -                    }
  -                    else
  -                    {
  -                        System.out.println("_____________HERE1: UserInfoMap NULL");
  -                    }
                   }
                   else
                   {                    
  -                    System.out.println("_____________HERE2: Entity is null!!!! " + entityID);
  +                    log.error("Entity is null:" + entityID);
                   }
                     
               }
  
  
  

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