All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.iteaj.iot.client.http.HttpClientConnectProperties Maven / Gradle / Ivy

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