Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ProxyPackage;
- import java.util.Scanner;
- public class Proxies {
- int session = 10;
- String usCountry = "servercountry-us.zproxy.luminati.io:22225:";
- String ukCountry = "servercountry-gb.zproxy.luminati.io:22225:";
- //String usUserName = "lum-customer-yeezys-zone-residential-country-us-session-";
- //String ukUserName = "lum-customer-justthekickz-zone-notjones-country-gb-session-";
- private String password,customer, zone, locale;
- public Proxies()
- {
- //this.session = session;
- this.password = password;
- this.zone = zone;
- this.customer = customer;
- }
- public Proxies(String customer,String zone, String password)
- {
- //this.session = session;
- this.password = password;
- this.zone = zone;
- this.customer = customer;
- }
- private String getPassword()
- {
- return password;
- }
- /**
- * @param password the password to set
- */
- public void setPassword(String password) {
- this.password = password;
- }
- /**
- * @return the customer
- */
- public String getCustomer() {
- return customer;
- }
- /**
- * @param customer the customer to set
- */
- public void setCustomer(String customer) {
- this.customer = customer;
- }
- /**
- * @return the zone
- */
- public String getZone() {
- return zone;
- }
- /**
- * @param zone the zone to set
- */
- public void setZone(String zone) {
- this.zone = zone;
- }
- public int getNumOfSessions(){
- System.out.print("Please input number of sessions: ");
- Scanner scan = new Scanner(System.in);
- session = scan.nextInt();
- return session;
- }
- /*
- public String incrementSession()
- {
- int count = 0;
- for (int i = 0; i < session; i++)
- {
- count++;
- String result = usCountry + usUserName + count + ":" + password;
- System.out.println(result);
- }
- return Integer.toString(count);
- }
- */
- public String getLocale()
- {
- System.out.print("What is your region, 'us' or 'uk'? ");
- Scanner scan = new Scanner(System.in);
- locale = scan.nextLine();
- return locale;
- }
- public void setLocale(){
- this.locale = locale;
- }
- public void incrementUk()
- {
- int count = 0;
- for (int i = 0; i < session; i++)
- {
- count++;
- String result = ukCountry + "lum-customer-" + getCustomer() + "-zone-"
- + getZone() + "-country-uk-session-" + count
- + ":" + password;
- System.out.println(result);
- }
- }
- public void incrementUs()
- {
- int count = 0;
- for (int i = 0; i < session; i++)
- {
- count++;
- String result = usCountry + "lum-customer-" + getCustomer() + "-zone-"
- + getZone() + "-country-us-session-" + count
- + ":" + password;
- System.out.println(result);
- }
- }
- public void incrementSession()
- {
- if (locale == "gb")
- {
- incrementUk();
- }
- else {
- if (locale == "us")
- {
- incrementUs();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment