eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::NetworkRequest':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: NetworkRequest (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::NetworkRequest
      |
      +--Comanche::HttpRequest

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Kom-Protocol-Abstract
Version:
rev: 1.10 date: 2003/09/11 12:48:12
user: cg
file: NetworkRequest.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


Kom48 (Comanche beta 4.8)
bolot 4/2/2001 18:53

NetworkRequest
- a generic request object
- properties are some ad-hoc properties
- session is not currently used

Note about Kom46:
- this class contained more methods
-- some methods have been depricated since


Class protocol:

instance creation
o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

accessing
o  method

** This method must be redefined in concrete classes (subclassResponsibility) **

o  session

o  session: aSession

o  url

** This method must be redefined in concrete classes (subclassResponsibility) **

initialize-release
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

properties
o  propertyAt: aSymbol
(comment from inherited method)
return the property for a given key or raise an error if not found.
Such propertys behave like dynamically addable slots in languages like JavaScript.
They are much more expensive though, because they are not a ''natural'' mechanism in Smalltalk,
but instead simulated via an additional properties collection mechanism, which
defaults to using a dictionary holding per instance properties.
So only use it for seldom needed/seldom assigned properties,
and only if it is not easy to add an instance variable or class-private mechanism for that.

Notice: properties and objectAttributes are similar mechanisms to dynamically add slots to an object.
Sigh: objectAttributes are older, and are named properties in Pharo.

o  propertyAt: aSymbol ifAbsent: absentBlock
(comment from inherited method)
return the property for a given key or defaultValue if not present.
Such propertys behave like dynamically addable slots in languages like JavaScript.
They are much more expensive though, because they are not a ''natural'' mechanism in Smalltalk,
but instead simulated via an additional properties collection mechanism, which
defaults to using a dictionary holding per instance properties.
So only use it for seldom needed/seldom assigned properties,
and only if it is not easy to add an instance variable or class-private mechanism for that.

Notice: properties and objectAttributes are similar mechanisms to dynamically add slots to an object.
Sigh: objectAttributes are older, and are named properties in Pharo.

o  propertyAt: aSymbol ifAbsentPut: absentBlock
(comment from inherited method)
return the property for a given key or the added defaultValue if not present.

Notice: properties and objectAttributes are similar mechanisms to dynamically add slots to an object.
Sigh: objectAttributes are older, and are named properties in Pharo.

o  propertyAt: aSymbol put: anObject
(comment from inherited method)
store the property anObject referenced by key into the receiver.
Such propertys behave like dynamically addable slots in languages like JavaScript.
They are much more expensive though, because they are not a ''natural'' mechanism in Smalltalk,
but instead simulated via an additional properties collection mechanism, which
defaults to using a dictionary holding per instance properties.
So only use it for seldom needed/seldom assigned properties,
and only if it is not easy to add an instance variable or class-private mechanism for that.

Notice: properties and objectAttributes are similar mechanisms to dynamically add slots to an object.
Sigh: objectAttributes are older, and are named properties in Pharo.

o  removePropertyAt: aSymbol

o  removePropertyAt: aSymbol ifAbsent: aBlock

testing
o  isGetRequest

** This method must be redefined in concrete classes (subclassResponsibility) **

o  isHeaderRequest

** This method must be redefined in concrete classes (subclassResponsibility) **

o  isPostRequest

** This method must be redefined in concrete classes (subclassResponsibility) **



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:15:47 GMT