WebService defines the standard service interface for all Fan based web servers.
See docLib::Web
Slots
- isServiceSource
-
override Bool isService()Overrides sys::Thread.isService
Return true.
- logSource
-
static Log log := Log.get("web")Standard log for web service
- makeSource
-
new make(Str? name)Constructor with thread name.
- onStartSource
-
override protected Void onStart()Overrides sys::Thread.onStart
Subclasses must call super if overridden.
- onStopSource
-
override protected Void onStop()Overrides sys::Thread.onStop
Subclasses must call super if overridden.
- pipelineSource
-
const WebStep[] pipelineThe pipeline field stores a series of WebSteps which are processed in sequence to service a web request.
See docLib::Web
- serviceSource
-
virtual Void service(WebReq req, WebRes res)Service the specified web request with the configured pipeline. Any exceptions raised by a step, are propagated to the caller - internal errors should be handled by subclasses. If
WebRes.doneis called, then the pipeline is terminated. -
const internal WebSessionMgr sessionMgr := WebSessionMgr()Session management thread