Squeak Class Documentation category index | class index  
 
CachedSwikiAction
  category: Network-Pluggable Web Server
  superclass: SwikiAction
  subclasses:

CachedSwikiAction caches SwikiAction pages so that they can be served as plain HTML files (no embedded Squeak code) even by a native webServer.

You must edit three class methods in CachedSwikiAction to get it to serve appropriately.

* CachedSwikiAction class defaultCacheDirectory is where to store cached pages
* CachedSwikiAction class defaultCacheURL is the URL to precede cached pages
* CachedSwikiAction class defaultPWSURL is where the PWS is that can handle editing and searching.

instance methods
  URL processing
  browse:from:
generate
generate:from:
generateRecent
inputFrom:
pageURL:

  access
  cacheDirectory
cacheDirectory:
cacheURL
cacheURL:
pwsURL
pwsURL:
url

  save/restore
  restore:
restoreNoGen:

class methods
  initialization
  setUp:

  services
  defaultCacheDirectory
defaultCacheURL
defaultPWSURL

instance methods
  URL processing top  
 

browse:from:

Just reply with a page in HTML format


 

generate


 

generate:from:

Just reply with a page in HTML format


 

generateRecent


 

inputFrom:

Take user's input and respond with a searchresult or store the edit


 

pageURL:

make the url suited to aPage


  access top  
 

cacheDirectory


 

cacheDirectory:


 

cacheURL


 

cacheURL:


 

pwsURL


 

pwsURL:


 

url

Answer the receiver's 'name'.


  save/restore top  
 

restore:

Read all files in the directory 'nameOfSwiki'. Reconstruct the
url map.


 

restoreNoGen:


class methods
  initialization top  
 

setUp:

Set up a named Swiki


  services top  
 

defaultCacheDirectory


 

defaultCacheURL


 

defaultPWSURL