|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectConnectionHandler
HTTPConnectionHandler
Connection handler for HTTP proxy connections to Yahoo. Pass this
class into the Session
constructor to create a session
which can work through firewalls.
Warning: HTTP is notoriously unreliable, even for geniune Yahoo, software. Not all problems with this class stem from bugs in its code. Hopefully future revisions of this handler will be able to smooth out any problems, or at least report them to the application better.
For more information on the Java properties used by this class, read Sun's Java Networking Properties page.
There is a system properties which alters the target of a connection.
ymsg.network.httpHost
can be used to set the host to
which the connection will be made. In reality is it highly unlikely
that this property should need to be changed from its default:
http.pager.yahoo.com
.
For users who access Yahoo from behind a firewall which requires
HTTP proxy authorization, the property ymsg.network.httpProxyAuth
can be used to set content for the Proxy-Authorization
HTTP header. A typical value (using the basic encoding scheme) might
look something like Basic Ab0Cd1Ef2Gh3z9==
, where the
second part is the proxy username followed by a colon followed by the
proxy password, encoded using BASE64. (Alternative encoding schemes
may take different forms.)
Field Summary |
Constructor Summary | |
HTTPConnectionHandler()
Connect using the Java system properties http.proxyHost
and http.proxyPort . |
|
HTTPConnectionHandler(String ph,
int pp)
Connect using a specific HTTP proxy host and port, with no excempt hosts. |
|
HTTPConnectionHandler(String ph,
int pp,
String ex)
Connect using a specific HTTP proxy host and port, with a list of excempt hosts. |
|
HTTPConnectionHandler(String ph,
int pp,
Vector ex)
Connect using a specific HTTP proxy host and port, with a list of excempt hosts, as a Vector. |
Method Summary | |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTTPConnectionHandler() throws IllegalArgumentException
http.proxyHost
and http.proxyPort
. If host is unset, this constructor
will look for the old (pre Java2 v1.3) names of proxyHost
and proxyPort
. If these are also unset, this constructor
will throw an IllegalArgumentException
.
IllegalStateException
- If no HTTP proxy properties set
IllegalArgumentException
public HTTPConnectionHandler(String ph, int pp, String ex)
Note: this constructor sets the Java system properties
http.proxyHost
, http.proxyPort
,
proxyHost
, proxyPort
, and
http.nonProxyHosts
. These settings will be global
throughout the JVM.
Note: http.nonProxyHosts
is unsupported in Java
prior to Java2 v1.3.
ph
- proxy hostpp
- proxy portex
- proxy exemption list, pipe char separated.public HTTPConnectionHandler(String ph, int pp, Vector ex)
Note: this constructor sets the Java system properties
http.proxyHost
, http.proxyPort
,
proxyHost
, proxyPort
, and
http.nonProxyHosts
. These settings will be global
throughout the JVM.
Note: http.nonProxyHosts
is unsupported in Java
prior to Java2 v1.3.
ph
- proxy hostpp
- proxy portex
- proxy exemption list, one host per elementpublic HTTPConnectionHandler(String ph, int pp)
Note: this constructor sets the Java system properties
http.proxyHost
, http.proxyPort
,
proxyHost
, proxyPort
, and
http.nonProxyHosts
. These settings will be global
throughout the JVM.
Note: http.nonProxyHosts
is unsupported in Java
prior to Java2 v1.3.
ph
- proxy hostpp
- proxy portMethod Detail |
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |