|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.ConnectionRoute
ice.net.Indirect
ice.net.proxy.Proxy
This is the implementation of an ConnectionRoute using a
proxy.
| Field Summary |
| Fields inherited from class ice.net.ConnectionRoute |
KNOWN_BAD, KNOWN_GOOD, UNTESTED |
| Constructor Summary | |
Proxy(String host)
Constructs a Proxy with the specified
host. |
|
Proxy(String host,
int port)
Constructs a Proxy with the specified host
and port. |
|
Proxy(String host,
int port,
String protocol)
Deprecated. As of 1.5, replaced by . |
|
Proxy(String host,
int port,
String protocol,
boolean tunneling)
Deprecated. As of 1.5, replaced by . |
|
Proxy(String protocol,
String host,
int port)
Constructs a Proxy with the specified
protocol, host and port. |
|
Proxy(String protocol,
String host,
int port,
boolean tunneling)
Constructs a Proxy with the specified
protocol, host, port and
tunneling. |
|
| Method Summary | |
protected void |
checkProtocol(String protocol)
Convenience method to check the specified protocol for
validity. |
boolean |
equals(Object object)
|
Authentication |
getAuthentication()
Returns the authentication of this Proxy. |
String |
getProtocol()
Returns the protocol of this Proxy. |
Authentication |
getProxyAuthentication()
Deprecated. As of 1.5, replaced by . |
boolean |
isTunneling()
Determines whether this Proxy is tunneling. |
void |
setAuthentication(Authentication authentication)
Sets this Proxy's authentication to the specified
authentication. |
void |
setProxyAuthentication(Authentication authentication)
Deprecated. As of 1.5, replaced by . |
String |
toString()
|
| Methods inherited from class ice.net.Indirect |
checkHost, checkPort, getHost, getPort, getStatus, setStatus |
| Methods inherited from class ice.net.ConnectionRoute |
checkStatus, getRequestedUrl, setRequestedUrl |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Proxy(String host)
throws IllegalArgumentException
Constructs a Proxy with the specified
host.
host - the host name of the Proxy to be created.
IllegalArgumentException - if the specified host is either
null or empty.#Indirect(String, int)
public Proxy(String host,
int port)
throws IllegalArgumentException
Constructs a Proxy with the specified host
and port.
host - the host name of the Proxy to be created.port - the port number of the Proxy to be created.
IllegalArgumentException - if one of the following occurs:
host is either
null or empty;
port is either less
than 0 or greater than
65536.
#Indirect(String, int)
public Proxy(String protocol,
String host,
int port)
throws IllegalArgumentException
Constructs a Proxy with the specified
protocol, host and port.
protocol - the protocol of the Proxy to be created.host - the host name of the Proxy to be created.port - the port number of the Proxy to be created.
IllegalArgumentException - if one of the following occurs:
protocol is either
null or empty;
host is either
null or empty;
port is either less
than 0 or greater than
65536.
#Indirect(String, int)
public Proxy(String protocol,
String host,
int port,
boolean tunneling)
throws IllegalArgumentException
Constructs a Proxy with the specified
protocol, host, port and
tunneling.
protocol - the protocol of the Proxy to be created.host - the host name of the Proxy to be created.port - the port number of the Proxy to be created.tunneling -
IllegalArgumentException - if one of the following occurs:
protocol is either
null or empty;
host is either
null or empty;
port is either less
than 0 or greater than
65536.
#Indirect(String, int)
public Proxy(String host,
int port,
String protocol)
Proxy(String, String, int).
public Proxy(String host,
int port,
String protocol,
boolean tunneling)
Proxy(String, String, int, boolean).
| Method Detail |
public boolean equals(Object object)
equals in class Indirectpublic final Authentication getAuthentication()
Returns the authentication of this Proxy.
setAuthentication(Authentication)public final String getProtocol()
Returns the protocol of this Proxy.
Note: this returns the protocol of the Proxy
connection route, not the requested protocol!
public Authentication getProxyAuthentication()
getAuthentication().
public final boolean isTunneling()
Determines whether this Proxy is tunneling.
true if this Proxy is tunneling,
false if not.public final void setAuthentication(Authentication authentication)
Sets this Proxy's authentication to the specified
authentication.
authentication - getAuthentication()public void setProxyAuthentication(Authentication authentication)
setAuthentication(Authentication).
public String toString()
protected final void checkProtocol(String protocol)
throws IllegalArgumentException
Convenience method to check the specified protocol for
validity.
The specified protocol is only valid if all of the
following applies:
null,
protocol.trim().length() != 0.
protocol - the protocol to be checked.
IllegalArgumentException - if the specified protocol is either
null or empty.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||