You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/11/08 00:36:12 UTC
svn commit: r331642 -
/portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java
Author: taylor
Date: Mon Nov 7 15:36:11 2005
New Revision: 331642
URL: http://svn.apache.org/viewcvs?rev=331642&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-362
User statistics implemented
Modified:
portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java
Modified: portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java?rev=331642&r1=331641&r2=331642&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java (original)
+++ portals/jetspeed-2/trunk/components/statistics/src/java/org/apache/jetspeed/statistics/impl/PortalStatisticsImpl.java Mon Nov 7 15:36:11 2005
@@ -194,6 +194,7 @@
return ds;
}
+
public void logPortletAccess(RequestContext request, String portletName,
String statusCode, long msElapsedTime)
{
@@ -210,7 +211,7 @@
record.setPortletName(portletName);
record.setUserName(userName);
record.setIpAddress(req.getRemoteAddr());
- record.setPagePath(req.getPathInfo());
+ record.setPagePath(request.getPage().getPath());
record.setStatus(Integer.parseInt(statusCode));
record.setTimeStamp(timestamp);
record.setMsElapsedTime(msElapsedTime);
@@ -324,7 +325,7 @@
record.setUserName(userName);
record.setIpAddress(req.getRemoteAddr());
- record.setPagePath(req.getPathInfo());
+ record.setPagePath(request.getPage().getPath());
record.setStatus(Integer.parseInt(statusCode));
record.setTimeStamp(timestamp);
record.setMsElapsedTime(msElapsedTime);
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org