On Thu, 3 May 2001, Craig R. McClanahan wrote:
>
> Take string arguments if you want in alternative constructors -- just
> don't deprecate the URL based ones, please :-).

Craig, I agree that there should be a startSession(URL) method, but did
you really mean that you want an HttpClient(URL) constructor?  I
deprecated those constructors because they led to confusing
behaviour.  For example,

  URL url = new URL("http://java.sun.com";);
  HttpClient client = new HttpClient(url);
  client.startSession();

will open a session to localhost:80.  I much prefer one no-arg constructor
and explicit startSession(URL) and startSession(String host, int
port) constructors.

- Morgan 

Reply via email to