org.apache.commons.latka.http
Class Proxy

java.lang.Object
  extended by org.apache.commons.latka.http.Proxy

public class Proxy
extends Object

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

Version:
$Id: Proxy.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
dion

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

PORT_UNSPECIFIED

public static final int PORT_UNSPECIFIED
the port number that represents port is unassigned

See Also:
Constant Field Values
Constructor Detail

Proxy

public Proxy()
Creates a new instance of Proxy


Proxy

public Proxy(String host,
             int port)
Create a proxy given a host name and port number .

Parameters:
host - the host name of the proxy to be used.
port - the port to send proxied requests on.
Method Detail

getHost

public String getHost()
Getter for property host.

Returns:
the host name of the proxy to be used.

setHost

public void setHost(String host)
Setter for property host.

Parameters:
host - the host name of the proxy to be used.

getPort

public int getPort()
Getter for property port.

Returns:
the port to send proxied requests on.

setPort

public void setPort(int port)
Setter for property port.

Parameters:
port - the port to send proxied requests on.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.