![JAR search and dependency download from the Maven repository](/logo.png)
fr.whimtrip.ext.jwhtscrapper.impl.BasicProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whimtrip-ext-scrapper Show documentation
Show all versions of whimtrip-ext-scrapper Show documentation
Fully featured highly pluggable and customizable Java scrapping framework
The newest version!
package fr.whimtrip.ext.jwhtscrapper.impl;
import fr.whimtrip.ext.jwhtscrapper.enm.ProxyStatus;
import fr.whimtrip.ext.jwhtscrapper.intfr.Proxy;
/**
*
* Part of project jwht-scrapper
* Created on 26/07/18
*
*
* Default POJO-like implementation of {@link Proxy}.
*
*
* @author Louis-wht
* @since 1.0.0
*/
public class BasicProxy implements Proxy {
private ProxyStatus status = ProxyStatus.WORKING;
private String ipAdress;
private int port;
/**
* Public default Proxy implentation
* @param ipAdress the ip adress of the proxy server.
* @param port the port to use to connect to the proxy server.
*/
public BasicProxy(String ipAdress, int port) {
this.ipAdress = ipAdress;
this.port = port;
}
/**
* {@inheritDoc}
*/
@Override
public ProxyStatus getStatus() {
return status;
}
/**
* {@inheritDoc}
*/
@Override
public void setStatus(ProxyStatus status) {
this.status = status;
}
/**
* {@inheritDoc}
*/
@Override
public String getIpAdress() {
return ipAdress;
}
/**
*
* @param ipAdress the ip adress to set.
*/
public void setIpAdress(String ipAdress) {
this.ipAdress = ipAdress;
}
/**
* {@inheritDoc}
*/
@Override
public int getPort() {
return port;
}
/**
* @param port the port to set.
*/
public void setPort(int port) {
this.port = port;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy