01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.ubt.report.data.file.raw;
06:
07: import com.sun.portal.ubt.report.data.MinerCollection;
08: import com.sun.portal.ubt.report.data.UBTLogConstants;
09: import com.sun.portal.ubt.report.data.UBTLogLine;
10:
11: import java.net.URL;
12: import java.util.TreeMap;
13:
14: /**
15: * NEED To TAKE CARE OF gateway in the front of URL
16: */
17: public class ExternalLinkAccessMiner extends DataMinerAdapter {
18: TreeMap data = new TreeMap();
19:
20: public void setMinerCollection(MinerCollection collection) {
21: }
22:
23: public void mine(UBTLogLine logLine) throws Exception {
24: if (!UBTLogConstants.EVENT_USER_CLICK_EX_LINK.equals(logLine
25: .getEventID()))
26: return;
27: String externalLink = logLine.getExPortalLink();
28: String user = logLine.getUserID();
29: if (externalLink == null || user == null)
30: return;
31: URL url = new URL(externalLink);
32: if (data.containsKey(url.getHost())) {
33: TreeMap hostMap = (TreeMap) data.get(url.getHost());
34: } else {
35:
36: }
37:
38: }
39:
40: public Object getData() {
41: return null;
42: }
43:
44: public void setData(Object data) {
45: }
46: }
|