org.apache.commons.jelly.tags.http
Class Proxy
java.lang.Object
|
+--org.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,v 1.3 2002/07/04 14:06:32 dion Exp $
- 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 |
PORT_UNSPECIFIED
public static final int PORT_UNSPECIFIED
- the port number that represents port is unassigned
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.
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-2004 Apache Software Foundation. All Rights Reserved.