🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1190

URL authorisation info

#1190
From: George Francis
Date: Thu, 25 Apr 2002 05:19
12 lines
1611 bytes
Hello
In the class, java.net.URL there is a method getAuthority, which allows you
to view the username and password associated with the URL object.
There is not, however, a corresponding set method.  There doesn't even seem
to be a constructor that allows you to specify this information during
object creation.
There is a protected set() method that accepts authorisation info as an
argument, but since it's protected, and the class is final, it is not
accessible, even by subclasssing java.net.URL.
Can someone tell me how to set autorisation info for a URL object?
Kind regards,
George.
Technical Details
Message-ID: <3cc79167$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,b1b009e94468e592,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-24 22:31:59 PST
Reply-To: "George Francis" <george_f@hotmail.com>
From: "George Francis" <george_f@hotmail.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: URL authorisation info
Date: Thu, 25 Apr 2002 15:19:29 +1000
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
NNTP-Posting-Host: 144.137.16.28
Message-ID: <3cc79167$1_2@dnews>
X-Trace: dnews 1019711847 144.137.16.28 (24 Apr 2002 22:17:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews