package com.doumee.core.haikang.isapi;
|
|
import com.doumee.dao.business.model.CollectionStation;
|
import lombok.Getter;
|
|
/**
|
* 采集站 ISAPI 连接上下文
|
*/
|
@Getter
|
public class IsapiStationContext {
|
|
private final String host;
|
private final int port;
|
private final boolean https;
|
private final String username;
|
private final String password;
|
|
public IsapiStationContext(CollectionStation station) {
|
this.host = station.getIp();
|
this.port = station.getPort() != null ? station.getPort() : 80;
|
this.https = station.getUseHttps() != null && station.getUseHttps() == 1;
|
this.username = station.getUsername();
|
this.password = station.getPassword();
|
}
|
|
public IsapiStationContext(String host, int port, boolean https, String username, String password) {
|
this.host = host;
|
this.port = port;
|
this.https = https;
|
this.username = username;
|
this.password = password;
|
}
|
}
|