Line | |
---|
1 | package de.ugoe.cs.autoquest.htmlmonitor; |
---|
2 | |
---|
3 | import java.net.URL; |
---|
4 | |
---|
5 | /** |
---|
6 | * <p> |
---|
7 | * represents infos of a client together with a shown URL and its title |
---|
8 | * </p> |
---|
9 | * |
---|
10 | * @author Patrick Harms |
---|
11 | */ |
---|
12 | public class HtmlClientInfos { |
---|
13 | |
---|
14 | /** |
---|
15 | * id of a client |
---|
16 | */ |
---|
17 | private String clientId; |
---|
18 | |
---|
19 | /** |
---|
20 | * browser used by the client |
---|
21 | */ |
---|
22 | private String userAgent; |
---|
23 | |
---|
24 | /** |
---|
25 | * URL of the web site shown by the browser of the client |
---|
26 | */ |
---|
27 | private URL url; |
---|
28 | |
---|
29 | /** |
---|
30 | * title of the web site shown by the browser of the client |
---|
31 | */ |
---|
32 | private String title; |
---|
33 | |
---|
34 | /** |
---|
35 | * <p> |
---|
36 | * instantiates an infos object with client id, browser at client side, the URL of the |
---|
37 | * shown website and its title. |
---|
38 | * </p> |
---|
39 | * |
---|
40 | * @param clientId id of a client |
---|
41 | * @param userAgent browser used by the client |
---|
42 | * @param url URL of the web site shown by the browser of the client |
---|
43 | * @param title title of the web site shown by the browser of the client |
---|
44 | */ |
---|
45 | public HtmlClientInfos(String clientId, String userAgent, URL url, String title) { |
---|
46 | this.clientId = clientId; |
---|
47 | this.userAgent = userAgent; |
---|
48 | this.url = url; |
---|
49 | this.title = title; |
---|
50 | } |
---|
51 | |
---|
52 | /** |
---|
53 | * @return the clientId |
---|
54 | */ |
---|
55 | String getClientId() { |
---|
56 | return clientId; |
---|
57 | } |
---|
58 | |
---|
59 | /** |
---|
60 | * @return the userAgent |
---|
61 | */ |
---|
62 | String getUserAgent() { |
---|
63 | return userAgent; |
---|
64 | } |
---|
65 | |
---|
66 | /** |
---|
67 | * @return the url |
---|
68 | */ |
---|
69 | URL getUrl() { |
---|
70 | return url; |
---|
71 | } |
---|
72 | |
---|
73 | /** |
---|
74 | * @return the title |
---|
75 | */ |
---|
76 | String getTitle() { |
---|
77 | return title; |
---|
78 | } |
---|
79 | |
---|
80 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.