KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > feature > proactive > server > WebInfo


1 /*
2  * WebInfo.java
3  *
4  * Created on April 27, 2003, 5:03 AM
5  */

6
7 package com.quikj.application.web.talk.feature.proactive.server;
8
9 import java.util.*;
10
11 /**
12  *
13  * @author amit
14  */

15 public class WebInfo
16 {
17     
18     /** Holds value of property url. */
19     private String JavaDoc url;
20     
21     /** Holds value of property accessTime. */
22     private Date accessTime;
23     
24     /** Creates a new instance of WebInfo */
25     public WebInfo(String JavaDoc url, Date access)
26     {
27         this.url = url;
28         accessTime = access;
29     }
30     
31     public WebInfo(String JavaDoc url)
32     {
33         this (url, new Date());
34     }
35     
36     /** Getter for property url.
37      * @return Value of property url.
38      *
39      */

40     public String JavaDoc getUrl()
41     {
42         return this.url;
43     }
44     
45     /** Setter for property url.
46      * @param url New value of property url.
47      *
48      */

49     public void setUrl(String JavaDoc url)
50     {
51         this.url = url;
52     }
53     
54     /** Getter for property date.
55      * @return Value of property date.
56      *
57      */

58     public Date getAccessTime()
59     {
60         return this.accessTime;
61     }
62     
63     /** Setter for property date.
64      * @param date New value of property date.
65      *
66      */

67     public void setAccessTime(Date accessTime)
68     {
69         this.accessTime = accessTime;
70     }
71     
72 }
73
Popular Tags