Scene7Endpoint.java
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* Decompiled with CFR 0_118.
*/
package com.day.cq.dam.scene7.api;
import java.net.URL;
public class Scene7Endpoint
implements Comparable<Scene7Endpoint> {
public static final int DEFAULT_PORT = 80;
private final URL apiURL;
private final URL ipsURL;
private final URL spsURL;
private final URL viewerSdkURL;
private final String apiVersion;
private final String region;
private final String description;
public Scene7Endpoint(URL apiURL, URL ipsURL, URL spsURL, String apiVersion, String region, String description) {
this.apiURL = apiURL;
this.ipsURL = ipsURL;
this.spsURL = spsURL;
this.viewerSdkURL = null;
this.apiVersion = apiVersion;
this.region = region;
this.description = description;
}
public Scene7Endpoint(URL apiURL, URL ipsURL, URL spsURL, URL viewerSdkURL, String apiVersion, String region, String description) {
this.apiURL = apiURL;
this.ipsURL = ipsURL;
this.spsURL = spsURL;
this.viewerSdkURL = viewerSdkURL;
this.apiVersion = apiVersion;
this.region = region;
this.description = description;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Region: ").append(this.region);
sb.append("; Description: ").append(this.description);
sb.append("; API URL: ").append(this.apiURL);
sb.append("; IPS URL: ").append(this.ipsURL);
sb.append("; SPS URL: ").append(this.spsURL);
sb.append("; Viewer SDK URL: ").append(this.viewerSdkURL != null ? this.viewerSdkURL : "");
sb.append("; API Version: ").append(this.apiVersion);
return sb.toString();
}
public URL getApiURL() {
return this.apiURL;
}
public URL getIpsURL() {
return this.ipsURL;
}
public URL getSpsURL() {
return this.spsURL;
}
public URL getViewerSdkURL() {
return this.viewerSdkURL;
}
public String getApiVersion() {
return this.apiVersion;
}
public String getRegion() {
return this.region;
}
public String getDescription() {
return this.description;
}
@Override
public int compareTo(Scene7Endpoint o) {
return this.description.compareTo(o.getDescription());
}
}