blob: 409b61cfbdf7e1003425225ab2c093ee76d17aa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
public class AdresseWeb {
private final String protocole;
private final String domaine;
private final String chemin;
public AdresseWeb(String proto, String dom, String path) {
protocole = proto;
domaine = dom;
chemin = path;
}
public AdresseWeb(String dom, String path) {
this("http", dom, path);
}
public AdresseWeb(String dom) {
this("http", dom, "");
}
public String toString() {
return protocole + "://www." + domaine + chemin;
}
}
|