1 16 17 package org.apache.commons.latka.http; 18 19 27 public class Proxy { 28 29 30 private String _host; 31 32 private int _port; 33 34 public static final int PORT_UNSPECIFIED = -1; 35 36 39 public Proxy() { 40 this(null, Proxy.PORT_UNSPECIFIED); 41 } 42 43 49 public Proxy(String host, int port) { 50 setHost(host); 51 setPort(port); 52 } 53 54 59 public String getHost() { 60 return _host; 61 } 62 63 68 public void setHost(String host) { 69 _host = host; 70 } 71 72 77 public int getPort() { 78 return _port; 79 } 80 81 86 public void setPort(int port) { 87 _port = port; 88 } 89 90 } 91 | Popular Tags |