br.com.swconsultoria.mdfe.util.ProxyUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-mdfe Show documentation
Show all versions of java-mdfe Show documentation
API Java para consumo do WebService de MDFe
The newest version!
package br.com.swconsultoria.mdfe.util;
import org.apache.axis2.transport.http.HttpTransportProperties;
public class ProxyUtil {
private HttpTransportProperties.ProxyProperties proxyProperties;
public ProxyUtil(String ip, int porta, String usuario, String senha) {
proxyProperties = new HttpTransportProperties.ProxyProperties();
proxyProperties.setProxyName(ip);
proxyProperties.setProxyPort(porta);
proxyProperties.setUserName(usuario);
proxyProperties.setPassWord(senha);
}
public String getProxyHostName() {
return proxyProperties.getProxyHostName();
}
public String getProxyPort() {
return String.valueOf(proxyProperties.getProxyPort());
}
public String getProxyUserName() {
return proxyProperties.getUserName();
}
public String getProxyPassWord() {
return proxyProperties.getPassWord();
}
}