com.deepexi.devops.proxy.TargetHost Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-proxy-servlet Show documentation
Show all versions of http-proxy-servlet Show documentation
Supports servlets for http and https request proxy
The newest version!
package com.deepexi.devops.proxy;
import lombok.Data;
/**
* 代理请求的目标主机信息
* @author linyuan - [email protected]
* @since 2019-12-19
*/
@Data
public class TargetHost {
private String host;
private Integer port;
public TargetHost() {
}
public TargetHost(String host) {
this(host, -1);
}
public TargetHost(String host, Integer port) {
this.host = host;
this.port = port;
}
public String toAddr() {
return (port != -1) ? host + ":" + port : host;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy