commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir D. Kolsky" <a...@kolsky.com>
Subject RE: HttpClient vs. Jigsaw vs. HTTPClient
Date Thu, 23 May 2002 20:45:51 GMT
Oh, I see...

 import org.w3c.protocol.http; // It's not exactly Jigsaw :-)

 HttpManager     manager = HttpManager.getManager() ;
 Request request = manager.createRequest() ;
 request.setMethod(HTTP.GET) ;
 request.setURL(new URL("http://www.w3.org/pub/WWW/"));
 Reply    reply = manager.runRequest(request) ;
 // Get the reply input stream that contains the actual data:
 InputStream in = reply.getInputStream() ;
 ...

-----Original Message-----
From: Gunnlaugur Thor Briem [mailto:gthb@dimon.is]
Sent: Thu, May 23, 2002 9:45 PM
To: Jakarta Commons Developers List
Subject: RE: HttpClient vs. Jigsaw vs. HTTPClient


Hi Xiaowei,

yes, there's definitely a client-side implementation,
just take a look!

API docs:

   http://jigsaw.w3.org/Doc/Programmer/api/index.html

Packages:

   org.w3c.www.http
   org.w3c.www.protocol.http
   org.w3c.www.protocol.http.auth
   org.w3c.www.protocol.http.cache
   org.w3c.www.protocol.http.cookies

Simple usage example (from API doc of class
org.w3c.jigsaw.protocol.http.HttpManager):

   HttpManager     manager = HttpManager.getManager() ;
   Request request = manager.createRequest() ;
   request.setMethod(HTTP.GET) ;
   request.setURL(new URL("http://www.w3.org/pub/WWW/"));
   Reply    reply = manager.runRequest(request) ;
   // Get the reply input stream that contains the actual data:
   InputStream in = reply.getInputStream() ;

CVSweb access:

   http://dev.w3.org/cvsweb/java/classes/org/w3c/www/http/
   http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/
   http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/auth/
   http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/cache/
   http://dev.w3.org/cvsweb/java/classes/org/w3c/www/protocol/http/cookies/

"Real" CVS access (anonymous, read-only of course):

   http://www.w3.org/Jigsaw/Team.html#help

Cheers,

	- Gulli


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message