eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'URI':

Home

everywhere
www.exept.de
for:
[back]

Class: URI


Inheritance:

   Object
   |
   +--URI
      |
      +--HierarchicalURI

Package:
stx:libbasic2
Category:
Net-Resources
Version:
rev: 1.15 date: 2008/07/11 09:46:01
user: sr
file: URI.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Class protocol:

accessing
o  attributes

o  classForScheme: aString
find a class for a given scheme name aString

o  schemes
answer the schemes supported by an URI-class.
Concrete subclasses redefine this to answer an array of scheme names

o  transferBufferSize

escape
o  escape: aString allow: additionalCharacters on: aStream

o  unEscape: aStream
convert escape sequences to the original characters

instance creation
o  fromString: aString
create an URI from a given String

o  fromString: aString onError: exceptionBlock
create an URI from a given String


Instance protocol:

accessing
o  scheme
return primary scheme of the class.
Concrete subclasses may redefine this

o  scheme: aString

comparing
o  = anURI

o  hash

converting
o  asURI

printing & storing
o  printOn: aStream

o  publicPrintOn: aStream
print, but omit password information.
Subclasses which know about secret information have to redefine this

subclass responsibility
o  exists
return true if the resource represented by this uri exists

** This method raises an error - it must be redefined in concrete classes **

o  readStreamDo: aBlock
evaluate a block with the read stream as first argument
and a dictionary containing attributes as second argument.
The stream is closed after aBlock has been evaluated.
Attributes may be the mime type (key #MIME)

** This method raises an error - it must be redefined in concrete classes **

o  readStreamsDo: aBlock
evaluate the block with a Collection of streams as first argument
and a dictionary containing attributes as second argument,
- a collection with a stream on a single file,
- or a collection with streams on a directorie's files, but not recursive

The streams are closed after aBlock has been evaluated.
Attributes may be the mime type (key #MIME)

** This method raises an error - it must be redefined in concrete classes **

o  writeStreamDo: aBlock
evaluate a block with the write stream as first argument
and a dictionary containing attributes as second argument.
The stream is closed after aBlock has been evaluated.
Attributes may be the mime type (key #MIME)

** This method raises an error - it must be redefined in concrete classes **

testing
o  isRemote
return true, if this is a remote URI



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 22:51:06 GMT