okay, thank you. And thank you for the wikipedia article.
<br/><br/>sincerely,
<br/><br/>Joe.
<br/><br/>
<div class='shrinkable-quote'><br/>> On May 31, 2016, at 3:27 PM, Ron Teitelbaum [via Smalltalk] <<a href="/user/SendEmail.jtp?type=node&node=4898727&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<br/>>
<br/>> Hi Joe,
<br/>>
<br/>>
<br/>>
<br/>> There are a number of different types of resource names. One of them is a URI the other is URL (I=Indenter L=Locator). They are ways for locating and identifying resources so that computers can find and work with them. I would recommend googling a bit about URI and URL to understand better what they are used for. The section I pointed out was a method that gave you the protocol (scheme) for the URL.
<br/>>
<br/>>
<br/>>
<br/>> URL class >> urlClassForScheme: scheme
<br/>>
<br/>> (scheme isNil or: [scheme = 'http']) ifTrue: [^HttpUrl].
<br/>>
<br/>> scheme = 'https' ifTrue: [^HttpUrl].
<br/>>
<br/>> scheme = 'ftp' ifTrue: [^FtpUrl].
<br/>>
<br/>> scheme = 'file' ifTrue: [^FileUrl].
<br/>>
<br/>> scheme = 'mailto' ifTrue: [^MailtoUrl].
<br/>>
<br/>> scheme = 'browser' ifTrue: [^BrowserUrl].
<br/>>
<br/>> ^GenericUrl
<br/>>
<br/>>
<br/>>
<br/>> This is a class side method that returns the class you should use to work with the resource. You asked why there were url methods on FileDirectory. The answer is that a url instead of starting with http as in <a href="http://mydomain.com/somefilename" target="_top" rel="nofollow" link="external">http://mydomain.com/somefilename</a> can start with file:// as in file://somefilename and this is how we get to FileDirectory (well eventually through FileUrl), that’s what I was trying to point out.
<br/>>
<br/>>
<br/>>
<br/>> All the best,
<br/>>
<br/>>
<br/>>
<br/>> Ron
<br/>>
<br/>>
<br/>>
<br/>>
<br/>>
<br/>>
<br/>>
<br/>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Joseph Alotta
<br/>> Sent: Tuesday, May 31, 2016 2:16 PM
<br/>> To: [hidden email]
<br/>> Subject: [Newbies] Re: FileDirectory
<br/>>
<br/>>
<br/>>
<br/>>
<br/>>
<br/>> > On May 26, 2016, at 5:50 PM, Ron Teitelbaum [via Smalltalk] <[hidden email]> wrote:
<br/>> >
<br/>> > Have a look at the Hierarchy for the class Url
<br/>> >
<br/>> >
<br/>> >
<br/>> > Notice the class method: #urlClassForScheme:
<br/>> >
<br/>> >
<br/>> >
<br/>> > That should give you a better understanding of why url methods are in FileDirectory.
<br/>> >
<br/>> >
<br/>> >
<br/>> > For browser like methods see HTTPClient.
<br/>>
<br/>>
<br/>>
<br/>> Sorry, Ron, all I got from this email after a day of trying to understand it, is that I do not have the background to grasp what you are trying to tell me. It seems you need to know all of this already before you know how to use it.
<br/>>
<br/>> I thought the purpose of encapsulation is that you do not need to know the inner workings of an object to use it.
<br/>>
<br/>> Is there something more basic about urls and httpclients that I can start with?
<br/>>
<br/>> Sincerely,
<br/>>
<br/>> Joe.
<br/>>
<br/>>
<br/>>
<br/>> View this message in context: Re: FileDirectory
<br/>> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
<br/>>
<br/>>
<br/>> _______________________________________________
<br/>> Beginners mailing list
<br/>> [hidden email]
<br/>> <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>>
<br/>>
<br/>> If you reply to this email, your message will be added to the discussion below:
<br/>> <a href="http://forum.world.st/FileDirectory-tp4897377p4898441.html" target="_top" rel="nofollow" link="external">http://forum.world.st/FileDirectory-tp4897377p4898441.html</a><br/>> To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4898727&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br/>> To unsubscribe from Squeak - Beginners, click here.
<br/>> NAML
</div><br/>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/FileDirectory-tp4897377p4898727.html">Re: FileDirectory</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>