|
Class: HTTPUtilityService
Object
|
+--HTTPService
|
+--HTTPSelectorService
|
+--HTTPUtilityService
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-HTTP-Services
- Version:
- rev:
1.16
date: 2023/09/07 20:45:29
- user: stefan
- file: HTTPUtilityService.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
experimental
A service which provides cgi-like utilities.
For now there are:
accessCount - counts access to the URL passed as urlParameter.
Replies with a clack-counter image.
To count a page, add the following link to the
page:
<IMG SRC='/Utilities/accessCounter;URL=<URL-of-Page>'>
more to come
[caveat:]
some strips only work on a bright background
copyrightCOPYRIGHT (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.
image specs
-
defaultDigitStrip
-
specifies the default digit-image strip to be used
-
digitStrip1
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip1 inspect
ImageEditor openOnClass:self andSelector:#digitStrip1
Icon flushCachedIcons
|
-
digitStrip2
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip3
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip3inv
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip3invMasked
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip4
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip4 inspect
ImageEditor openOnClass:self andSelector:#digitStrip4
Icon flushCachedIcons
|
-
digitStrip5
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip5 inspect
ImageEditor openOnClass:self andSelector:#digitStrip5
Icon flushCachedIcons
|
-
digitStrip6
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip6Masked
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip6Masked inspect
ImageEditor openOnClass:self andSelector:#digitStrip6Masked
Icon flushCachedIcons
|
-
digitStrip7
-
a sample digit-image strip.
To use these images, change #defaultDigitStrip
-
digitStrip8
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip8 inspect
ImageEditor openOnClass:self andSelector:#digitStrip8
Icon flushCachedIcons
|
-
digitStrip8Masked
-
This resource specification was automatically generated
by the ImageEditor of ST/X.
Usage example(s):
self digitStrip8Masked inspect
ImageEditor openOnClass:self andSelector:#digitStrip8Masked
Icon flushCachedIcons
|
queries-service
-
linkName
-
return the default path (with slash)
accessing
-
digitStrip: aBitmapImage
-
argument should be one of my class-side-provided digit strips
actions
-
accessCounter: aRequest
-
count up and return a counter image for the new count.
Arrice here via the URL:
IMG SRC='/Utilities/accessCounter;url=<countedURL>'
-
accessCounterUncounted: aRequest
-
return a counter image - but do not count up.
Arrive here via the URL:
IMG SRC='/Utilities/accessCounterUncounted'
helpers
-
generateImageFor: aCount
-
generate a bitmap image for aCount.
Uses the digitStrip for individual digit-pictures.
Usage example(s):
self new generateImageFor:9876
(self new digitStrip:(self digitStrip4)) generateImageFor:9876
(self new digitStrip:(self digitStrip6)) generateImageFor:9876
(self new digitStrip:(self digitStrip7)) generateImageFor:9876
|
initialization
-
initialize
-
look should be configurable via a settings app
queries-service
-
allowedMessages
-
return a collection of messages, that this service processes
|