org.apache.commons.jelly.tags.http
Class Proxy

java.lang.Object
  extended byorg.apache.commons.jelly.tags.http.Proxy

public class Proxy
extends java.lang.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 155420 2005-02-26 13:06:03Z 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(java.lang.String host, int port)
          Create a proxy given a host name and port number .
 
Method Summary
 java.lang.String getHost()
          Getter for property host.
 int getPort()
          Getter for property port.
 void setHost(java.lang.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(java.lang.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 java.lang.String getHost()
Getter for property host.

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

setHost

public void setHost(java.lang.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 © 2002-2006 Apache Software Foundation. All Rights Reserved.