
WebService defines the standard service interface for all Fan based web servers.
See docLib::Web
Slots
- isService
-
override Bool isService()
Return true.
- log
-
static Log log := Log.get("web")
Standard log for web service
- make
-
new make(Str name)
Constructor with thread name.
- onStart
-
override protected Void onStart()
Subclasses must call super if overridden.
- onStop
-
override protected Void onStop()
Subclasses must call super if overridden.
- pipeline
-
const WebStep[] pipeline
The pipeline field stores a series of WebSteps which are processed in sequence to service a web request.
See docLib::Web
- service
-
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.done
is called, then the pipeline is terminated. -
const internal WebSessionMgr sessionMgr := WebSessionMgr.make
Session management thread