Advertisement
Guest User

Proxy

a guest
Aug 23rd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.  
  2. public class ProxyService {
  3.     private String host;
  4.     private int port;
  5.    
  6.     public ProxyService() {}
  7.    
  8.     public ProxyService(String host , int port) {
  9.         this.host = host;
  10.         this.port = port;
  11.     }
  12.    
  13.     public void setHost(String host) {
  14.         this.host = host;
  15.     }
  16.     public void setPort(int port) {
  17.         this.port = port;
  18.     }
  19.    
  20.     public String getHost() {
  21.         return host;
  22.     }
  23.     public int getPort() {
  24.         return port;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement