Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | jmachado | 1 | package pt.estgp.estgweb.domain; |
2 | |||
359 | jmachado | 3 | import org.apache.commons.httpclient.util.URIUtil; |
4 | import org.apache.commons.httpclient.URIException; |
||
5 | import org.apache.log4j.Logger; |
||
6 | |||
12 | jmachado | 7 | import java.io.Serializable; |
8 | import java.util.HashSet; |
||
18 | jmachado | 9 | import java.util.Date; |
12 | jmachado | 10 | |
11 | /** |
||
12 | * @author Jorge Machado |
||
13 | * @date 14/Mar/2008 |
||
14 | * @time 9:50:22 |
||
15 | * @see pt.estgp.estgweb.domain |
||
16 | */ |
||
17 | public class UrlStatImpl extends UrlStat |
||
18 | { |
||
359 | jmachado | 19 | private static final 1.5.0/docs/api/java/util/logging/Logger.html">Logger logger = 1.5.0/docs/api/java/util/logging/Logger.html">Logger.getLogger(UrlStatImpl.class); |
12 | jmachado | 20 | |
21 | public UrlStatImpl() |
||
22 | { |
||
18 | jmachado | 23 | setTotalClicks(0); |
24 | setSaveDate(new 5+0%2Fdocs%2Fapi+Date">Date()); |
||
12 | jmachado | 25 | } |
26 | |||
27 | public 1.5.0/docs/api/java/io/Serializable.html">Serializable getSerializable() |
||
28 | { |
||
29 | return getRelativePath(); |
||
30 | } |
||
18 | jmachado | 31 | |
12 | jmachado | 32 | public void addYear(UrlStatYear urlStatYear) |
33 | { |
||
34 | if(getYears() == null) |
||
35 | setYears(new HashSet<UrlStatYear>()); |
||
36 | getYears().add(urlStatYear); |
||
37 | } |
||
18 | jmachado | 38 | |
438 | jmachado | 39 | // public String getName() |
40 | // { |
||
41 | // if(super.getName() == null) |
||
42 | // try |
||
43 | // { |
||
44 | // return URIUtil.decode(getRelativePath(),"ISO-8859-1"); |
||
45 | // } |
||
46 | // catch (URIException e) |
||
47 | // { |
||
48 | // logger.error(e,e); |
||
49 | // } |
||
50 | // return super.getName(); |
||
51 | // } |
||
12 | jmachado | 52 | } |