eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::SwikiDirectory':

Home

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

Class: SwikiDirectory (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::SwikiEntry
      |
      +--Comanche::SwikiDirectory
         |
         +--Comanche::SwikiSubDirectory

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-FileServer
Version:
rev: 1.9 date: 2003/08/29 17:08:46
user: cg
file: SwikiDirectory.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


SwikiDirectory

is a cacheing file directory that allows you to reference and serve files in it.

INSTANCE VARIABLES:
dir = the corresponding FileDirectory
dirServeCache = a dictionary mapping relative HTTP paths to the corresponding subdirectories
dirRefsCache = a dictionary mapping directory names to the corresponding directories
fileServeCache = a dictionary mapping relative HTTP paths to the corresponding files
fileRefsCache = a dictionary mapping file names to the corresponding SwikiFileVersions


Class protocol:

instance creation
o  fromArray: arr onDir: dir

o  onDir: dir


Instance protocol:

accessing
o  dir

o  dir: aFileDirectory

o  directoriesAlphabetically

o  fileVersionsAt: key

o  filesAlphabetically

o  httpPath

o  localHttpPath

o  size
(comment from inherited method)
return the number of the receiver's indexed instance variables;
this method may be redefined in subclasses

cacheing
o  addToDirRefsCache: aSubSwikiDir at: key

o  addToDirServeCache: aSubSwikiDir at: key

o  addToFileRefsCache: entry at: fullName

o  addToFileServeCache: entry at: key

o  directoryNamed: dirName
Create One

o  directoryNamed: dirName ifAbsent: aBlock

o  fileRefsCacheAt: key ifAbsent: block

o  fileServeCacheAt: key ifAbsent: block

file operations
o  addAliasFrom: key to: value

o  aliasDict

o  fileEntries

o  moveFileNamed: fullPath toFileName: fileName
Add alias

o  readOnlyFile: aSwikiFile

initialization
o  initialize
Fill Directories and Files

o  initializeDirectories
Initialize Caches

o  initializeFiles
Initialize Caches

referencing
o  referenceDirFs: fs options: dict

o  referenceFileNamed: aFileName fs: fs options: dict

serving
o  serveDirFs: fs options: dict

o  serveFilePath: aFilePath fs: fs options: dict

o  servePath: aPath fs: fs options: dict

testing
o  directoryExists: dirName

o  fileExists: fileName

o  fileRefsExists: fileName

o  fileServeExists: fileName

o  isASubDirectory



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:00:04 GMT