com.iteaj.iot.client.http.HttpClientConnectProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-client Show documentation
Show all versions of iot-client Show documentation
基于netty的tcp, http, udp等协议的客户端
The newest version!
package com.iteaj.iot.client.http;
import com.iteaj.iot.client.ClientConnectProperties;
import java.net.URI;
public class HttpClientConnectProperties extends ClientConnectProperties {
public HttpClientConnectProperties(String url) {
this(URI.create(url));
}
public HttpClientConnectProperties(URI uri) {
this(uri.getHost(), uri.getPort());
}
public HttpClientConnectProperties(String remoteHost, Integer remotePort) {
super(remoteHost, remotePort, String.format("%s:%s", remoteHost, remotePort.toString()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy