001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.monitoring.statistics.portal;
016    
017    import com.liferay.portal.kernel.util.StringBundler;
018    import com.liferay.portal.monitoring.MonitorNames;
019    import com.liferay.portal.monitoring.statistics.BaseDataSample;
020    
021    /**
022     * @author Rajesh Thiagarajan
023     * @author Michael C. Han
024     * @author Brian Wing Shun Chan
025     */
026    public class PortalRequestDataSample extends BaseDataSample {
027    
028            public PortalRequestDataSample(
029                    long companyId, String user, String requestURI, String requestURL) {
030    
031                    setCompanyId(companyId);
032                    setUser(user);
033                    setNamespace(MonitorNames.PORTAL);
034                    setName(requestURI);
035                    _requestURL = requestURL;
036            }
037    
038            public String getRequestURL() {
039                    return _requestURL;
040            }
041    
042            public String toString() {
043                    StringBundler sb = new StringBundler(5);
044    
045                    sb.append("{requestURL=");
046                    sb.append(_requestURL);
047                    sb.append(", ");
048                    sb.append(super.toString());
049                    sb.append("}");
050    
051                    return sb.toString();
052            }
053    
054            private String _requestURL;
055    
056    }