forked from prebid/prebid-server-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsersyncer.java
More file actions
34 lines (25 loc) · 938 Bytes
/
Usersyncer.java
File metadata and controls
34 lines (25 loc) · 938 Bytes
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
package org.prebid.server.bidder;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.prebid.server.util.HttpUtil;
import java.util.Objects;
@Data
@AllArgsConstructor
public class Usersyncer {
private String cookieFamilyName;
private String usersyncUrl;
private String redirectUrl;
private String type;
private boolean supportCORS;
public Usersyncer(String cookieFamilyName, String usersyncUrl, String redirectUrl, String externalUri,
String type, boolean supportCORS) {
this.cookieFamilyName = cookieFamilyName;
this.usersyncUrl = Objects.requireNonNull(usersyncUrl);
this.redirectUrl = StringUtils.isNotBlank(redirectUrl)
? HttpUtil.validateUrl(externalUri) + redirectUrl
: StringUtils.EMPTY;
this.type = type;
this.supportCORS = supportCORS;
}
}