|
Class: HTTPTentativeObjectService
Object
|
+--HTTPService
|
+--HTTPTentativeObjectService
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-HTTP-Services
- Version:
- rev:
1.23
date: 2016/09/16 09:27:18
- user: sr
- file: HTTPTentativeObjectService.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
Serves temporary objects. Typically images, which are generated on the fly.
The objects are flushed after a while.
defaults
-
defaultTemporaryLinkExpirationTime
-
default temporary link expiration time in seconds
-
linkName
-
return the default path (with slash)
-
longTemporaryLinkBrowerCacheExpirationTime
-
temporary browerCache expiration time in seconds for things which expire never in the service
-
temporaryLinkExpirationTime
-
default temporary link expiration time in seconds
** This is an obsolete interface - do not use it (it may vanish in future versions) **
queries
-
isThreadSafe
-
accessing
-
temporaryLinkExpirationTime
-
return the time (in seconds) which controls how long temporary links should be kept
-
temporaryLinkExpirationTime: something
-
set the time (in seconds) which controls how long temporary links should be kept
initialization
-
initialize
-
maintenance html presentation
-
specificChangeFromRequest: aRequest
-
extracts parameter from an html-maintenance post-request
-
specificInputFieldsForRequest: aRequest
-
persistency
-
settingSelectors
-
answer the selectors that are used to configure a service - i.e. those which are
saved in the webServer-settings file.
usage example(s):
HTTPService new settingSelectors
self new settingSelectors
|
registration
-
shutdown
-
unregister myself from an HTTPServer (if I am registered as default)
-
startup
-
when registering with aServer, and no
tentativeObjectService has been registered as default until now,
register myself
request handling
-
process: aRequest
-
return the temporary object's value
serving-helpers
-
imageInfoForFileName: aPath
-
get an image from temporary links or hard disc
temporary link-add/remove
-
clearTemporaryLinkIds
-
Clear all temp linkIds.
-
expireOldTemporaryLinksFor: now
-
expire old temporary links
-
graphicLinkIdFor: anImage
-
Return the linkId for a temporary graphic link.
-
graphicLinkIdFor: anImage expirationTimeDelta: anExpirationTimeDelta
-
Return the linkId for a temporary graphic link.
-
nextSequenceNumber
-
generate and return a unique sequence number
(used for temporary link-generation)
-
removeTemporaryLinkInfoForUrlPath: urlPath
-
remove the temporary link if it is available
-
temporaryLinkBaseName: aBaseNameOrNil for: anObject type: aType expirationTimeDelta: anExpirationTimeDelta
-
Return the linkId for a temporary object with a lifeTime of anExpirationTimeDelta
in seconds. Additional feature: if the passed anExpirationTimeDelta is the symbol #never,
that link will be kept for ever in the service. (but with a longBrowserCacheExpirationDelta in the browser).
aValue may be a block (or other #value-responding) thing;
its value is computed when a client asks for the link
-
temporaryLinkPathFor: anObject type: aType
-
Return the linkId for a temporary object.
-
temporaryLinkPathFor: anObject type: aType expirationTimeDelta: anExpirationTimeDelta
-
Return the linkId for a temporary object with a lifeTime of anExpirationTimeDelta
in seconds. Additional feature: if the passed anExpirationTimeDelta is the symbol #never,
that link will be kept for ever in the service. (but with a longBrowserCacheExpirationDelta in the browser).
aValue may be a block (or other #value-responding) thing;
its value is computed when a client asks for the link
temporary link-queries
-
hasExpiredForLinkObject: aLinkObject time: aTime
-
return true if exists and have a link for this path. Otherwise return false
-
hasExpiredForUrlPath: urlPath time: aTime
-
return false if urlPath is valid (exists and has not expired). Otherwise return true
-
hasTemporaryLinkForLinkObject: anLinkObject
-
-
hasTemporaryLinkForUrlPath: aPath
-
-
temporaryLinkInfoForLinkObject: aLinkObject
-
retrieve a temporary objects linkInfo - or nil
-
temporaryLinkInfoForUrlPath: relativeOrAbsoluteUrlPath
-
retrieve a temporary objects linkInfo - or nil
TemporaryLinkInfo
|