1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.limmen.crs.client.locator;
17
18 public class Service {
19
20 private final String contextPath;
21
22 private final String hostname;
23
24 private final int port;
25
26 public Service(String hostname, int port) {
27
28 this(hostname, port, null);
29 }
30
31 public Service(String hostname, int port, String contextPath) {
32
33 super();
34
35 this.hostname = hostname;
36 this.port = port;
37 this.contextPath = contextPath;
38 }
39
40 public String getContextPath() {
41
42 return contextPath;
43 }
44
45 public String getHostname() {
46
47 return hostname;
48 }
49
50 public int getPort() {
51
52 return port;
53 }
54 }