What you can set with System.getProperties().put in code, you can set
with -D on the java command line.
Proxy support on the URLConnection class is somewhat primative compared to,
say, libwww in C or LWP in perl. There were articles in JavaReport several
years ago about subclassing HttpURLConnection to do per-connection proxy
setting, so that one could write code which used different proxies and/or
different authentication for connections within the same program.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2000 3:19 AM
> To: JetSpeed
> Subject: RE: Proxy?
>
>
> ello,
>
> I visited that link and it's about how to code in java to use proxy host.
> What I am after is whether Jetspeed has built-in capability to do this so
> that all I need is to configure it.
>
> Anyway, I looked at Jetspeed's
> org\apache\jetspeed\util\download\URLFetcher.java file and found that it
> was not setting any property values when connecting to URL (then again, I
> maybe wrong), here is part of the code:
> try {
>
> URL content = new URL( url );
>
> content.getContent();
>
> InputStream is = content.openStream();
>
> return is;
>
> } catch ( Exception e ) { ...
>
> Is there any plan to add the proxy handling into jetspeed?
>
> cheers
> romen
>
>
> "Jim Nicholson" <[EMAIL PROTECTED]> on 11/07/2000 22:43:01
>
> Please respond to "JetSpeed" <[EMAIL PROTECTED]>
>
> To: "JetSpeed" <[EMAIL PROTECTED]>
> cc: (bcc: Romen Law/Australia/IBM)
> Subject: RE: Proxy?
>
>
>
>
> See
>
> http://forum.java.sun.com/forum?14@@.eec4bd8
>
> for info on using the System.getProperties() method to set up proxy
> authentication.
>
> - Jim
>
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]