Squeak Class Documentation category index | class index  
 
ServerAction
  category: Network-Pluggable Web Server
  superclass: Object
  subclasses: PluggableServerAction ChatPage SwikiAction CodeServer ScreenshotAction EmbeddedServerAction SinglePlugServerAction

The ServerAction class is the default ServerAction (if the first token in the URL does not match any in the PWS ActionTable). Instances of ServerAction act like Mac Web servers -- they parse the URL into a Mac file path (including use of default.html if no final filename is provided), then return the contents of that file as the reply.

All ServerActions get asked to process: a PWS request. This ServerAction does the processing by asking itself to checkAuthorization, to parse the request, to log the parsed request, and then to reply to the request. Other ServerActions (like EmbeddedServerAction) can override one or more of those requests.

The ServerAction class provides a ServerDirectory service.

instance methods
  URL processing
  checkAuthorization:
log:to:
parse:
process:
process:MIMEtype:
replyTo:from:

  file input/output
  fileContents:
subdirectory:

class methods
  System Services
  defaultFile
pathSeparator
serverDirectory

instance methods
  URL processing top  
 

checkAuthorization:


 

log:to:


 

parse:


 

process:


 

process:MIMEtype:

See if there is a .gif file on my disk of this name, and send it out.


 

replyTo:from:

Transcript show: 'Reply: ', pieces; cr.


  file input/output top  
 

fileContents:


 

subdirectory:


class methods
  System Services top  
 

defaultFile


 

pathSeparator


 

serverDirectory