eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'URL':

Home

everywhere
www.exept.de
for:
[back]

Class: URL


Inheritance:

   Object
   |
   +--URL

Package:
stx:libhtml
Category:
Net-Communication-Support
Version:
rev: 1.40 date: 2009/11/12 12:29:54
user: mb
file: URL.st directory: libhtml
module: stx stc-classLibrary: libhtml
Author:
Claus Gittinger

Description:


(for now) only a holder for the parse URL info.
Will takeover more functionality in the near future.

Late note: is going to be obsoleted by URI.


Class protocol:

Compatibility-Squeak
o  schemeNameForString: urlString

instance creation
o  classForScheme: schemeString

o  fromString: aString

o  fromURLString: aStringIn
self oldFromURLString:'checkout.stt'.
self fromURLString:'checkout.stt'.

o  method: methodString host: hostString port: portNumber path: pathString

o  method: methodString path: pathString

o  new

o  scheme: schemeString host: hostString port: portNumber path: pathString

o  scheme: schemeString path: pathString

utilities
o  constructPath: path1 with: path2


Instance protocol:

Compatibility-Squeak
o  authority

o  fullPath

o  retrieveContents
squeak compatibility

o  retrieveContentsAccept: mimeType
squeak compatibility

o  retrieveContentsArgs: args
squeak compatibility

o  retrieveContentsArgs: args accept: mimeType
squeak compatibility

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

o  withoutFragment
what does it do ?

accessing
o  anchor
return the value of the instance variable 'anchor' (automatically generated)

o  anchor: something
set the value of the instance variable 'anchor' (automatically generated)

o  file
return the value of the instance variable 'file' (automatically generated)

o  file: something
set the value of the instance variable 'file' (automatically generated)

o  fragmentPart

o  fragmentPart: aString

o  host
return the value of the instance variable 'host' (automatically generated)

o  host: something
set the value of the instance variable 'host' (automatically generated)

o  method
return the value of the instance variable 'method' (automatically generated)

o  method: something
set the value of the instance variable 'method' (automatically generated)

o  otherPart

o  path
return the value of the instance variable 'path' (automatically generated)

o  path: something
set the value of the instance variable 'path' (automatically generated)

o  port
return the value of the instance variable 'port' (automatically generated)

o  port: something
set the value of the instance variable 'port' (automatically generated)

o  rest
return the value of the instance variable 'rest' (automatically generated)

o  rest: something
set the value of the instance variable 'rest' (automatically generated)

o  scheme

o  scheme: aString

comparing
o  = anURL

o  copyWithoutFragmentPart

o  copyWithoutOtherPart

o  hash

o  postCopy

conversion
o  asURL
return an URL-object from myself - thats me.

parsing
o  parseFromString: urlString
parse URL contained in a string and set my inst vars

printing & storing
o  displayString

o  printOn: aStream

o  urlPrintString
the printString of the full url (incl. method, host and port)

private
o  clearFragmentPart

o  clearOtherPart

o  flag

o  hasFragmentPartBitMask

o  hasPostDataBitMask

o  hasSearchPartBitMask

o  initialize

o  setOtherPart: aString flag: anInteger

queries
o  canCache

o  fullRequestString

o  hasFragmentPart

o  hasFragmentPart: aBoolean

o  hasPostData

o  hasPostData: aBoolean

o  hasSearchPart

o  hasSearchPart: aBoolean

o  isFileScheme

o  isFragmentOnly

o  isHostRelativePath

o  isRelativePath

o  isValidMethod: aMethod
mhmh - is this a good idea (isn't it the task of a url-user to decide, which
methods it supports. The URL does not really know...

o  newsGroup
If the receiver is an nntp url, return the news group.

o  postData

o  postData: aString

o  requestString

o  searchPart

o  searchPart: aString

utilities
o  / aString
answer a new instance with aString concatenated to my path.
We simply append aString to the end of the path.
Look at construct for a more enhanced

o  construct: anUrlOrString

o  pathSuffix
answer the suffix of may path.
for '/part1/part2/part3.suffix' this is '.suffix'



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