eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::HttpFormDictionary':

Home

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

Class: HttpFormDictionary (in Comanche)


Inheritance:

   Object
   |
   +--Collection
      |
      +--Set
         |
         +--Dictionary
            |
            +--Comanche::HttpFormDictionary

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Kom-Protocol-HTTP
Version:
rev: 1.14 date: 2003/09/11 12:47:54
user: cg
file: HttpFormDictionary.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


kom/4.12 (Comanche/4.12)

HttpFormDictionary (kom/4.10; bolot 6/22/2001 12:09)
    - use this instead of plain Dictionary for GET and POST forms
    - maintains multiple values for the same field
    -- but is backwards compatible, #at: returns the first value (?)
    -- so do #booleanAt:, #numberAt:
    - to access the actual value at key, use #rawAt:
    -- returns an OrderedCollection

TODO:
    - file upload support
    -- idea: first value is file name, second is FileStream?


Instance protocol:

accessing
o  at: key
(comment from inherited method)
return the element indexed by aKey - report an error if none found

o  at: key ifAbsent: aBlock
is this not absent?

o  at: key put: value
(comment from inherited method)
add the argument anObject under key, aKey to the receiver.
Return anObject (sigh).
WARNING: do not add elements while iterating over the receiver.
Iterate over a copy to do this.

o  booleanAt: key

o  booleansAt: key
(Smalltalk dialectName = 'SmalltalkX')

o  numberAt: key

o  numbersAt: key

o  rawAt: key

o  rawAt: key ifAbsent: aBlock

o  stringAt: key

o  stringsAt: key

printing
o  printElementsOn: aStream
(comment from inherited method)
append a user readable representation of the receiver to aStream.
The text appended is not meant to be read back for reconstruction of
the receiver. Also, this method limits the size of generated string.



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