|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.latka.http.Proxy
public class Proxy
A class that holds proxy details for a session. At the moment this is a placeholder for two simple properties that may get added to as time goes by
Field Summary | |
---|---|
static int |
PORT_UNSPECIFIED
the port number that represents port is unassigned |
Constructor Summary | |
---|---|
Proxy()
Creates a new instance of Proxy |
|
Proxy(String host,
int port)
Create a proxy given a host name and port number . |
Method Summary | |
---|---|
String |
getHost()
Getter for property host. |
int |
getPort()
Getter for property port. |
void |
setHost(String host)
Setter for property host. |
void |
setPort(int port)
Setter for property port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PORT_UNSPECIFIED
Constructor Detail |
---|
public Proxy()
public Proxy(String host, int port)
host
- the host name of the proxy to be used.port
- the port to send proxied requests on.Method Detail |
---|
public String getHost()
public void setHost(String host)
host
- the host name of the proxy to be used.public int getPort()
public void setPort(int port)
port
- the port to send proxied requests on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |