eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ComancheSwikiService':

Home

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

Class: ComancheSwikiService


Inheritance:

   Object
   |
   +--HTTPService
      |
      +--ComancheService
         |
         +--ComancheSwikiService

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-STX-Support
Version:
rev: 1.83 date: 2006/07/28 20:18:23
user: stefan
file: ComancheSwikiService.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Description:


I am the glue between the HTTPServers services (on the calling side)
and SwikiModules on the other side.
Instances of me are registered in the HTTPServer (under the link-name)
and I will be invoked via the #process: method for incoming
requests.

To set up your new Swiki, you need a copy of the comanche swiki data files.
There is one provided in 
    goodies/webServer/data/sampleServerDir/comancheSwiki

Notice, that the one in sampleServerDir has been adapted to ST/X
while you may have to adjust things when using the Squeak files.

Open the new settings dialog. Add this service to the server and apply.
Select the service Settings Application for the Comanche Swiki and select
to a valid directory for the comanche Swiki files.

copyright

COPYRIGHT (c) 2003 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

configuring - setup
o  loadPackage
self loadPackage

Usage example(s):

    self loadPackage

o  new

o  postAutoload
self loadPackage

defaults
o  canChangeReplyPresenter

o  linkName
return the default linkName (with slash)

queries-service
o  availableModuleClassNames

o  comancheSwikiRoot
dir := './webServer/data/comancheSwiki'

Usage example(s):

self comancheSwikiRoot 
UserPreferences current httpServerComancheSwikiServerDirectory:nil

o  comancheSwikiXPRoot
self comancheSwikiXPRoot

o  isThreadSafe

o  settingsApplicationClass
my application in the settings dialog


Instance protocol:

accessing
o  comancheSwikiRoot

o  comancheSwikiRoot: aDirectory

o  servicePath: something
blocked

o  swikiModuleClass

o  swikiModuleClassName

o  swikiModuleClassName: aClassName

initialize
o  browseWithSwikiBrowser
ComancheSwikiService allInstances first browseWithSwikiBrowser

o  initialize

o  setupModule

o  setupModuleForComancheSwikiRoot: comancheSwikiRootFilename swikiModuleClassName: swikiModuleClassNameVar

maintenance html presentation
o  specificChangeFromRequest: aRequest
extracts parameter from an html-maintenance post-request

o  specificInputFieldsForRequest: aRequest
generates the html-fragment for the maintenance form

queries
o  allowRobotsPaths
return the disallowed paths for robots

o  comancheSwikiBookNames

queries-service
o  linkNames: aLinkNameCollection
(comment from inherited method)
set the names, under this service may be reaches;
e.g. if you set linkNames to #('/xxx' '/yyy') this service may be reached as both
'http://hostname:port/xxx' and 'http://hostname:port/yyy'.
If this is never called, then the service class is asked for a default name

o  linkNamesChanged

registration
o  addRequiredForeignServicesTo: aServer
I need a file service for the bitmaps and icons

o  registerServiceOn: aServer
register myself as comanche swiki service on a single HTTPServer.

o  removeRequiredForeignServicesFrom: aServer



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:57:09 GMT