...
Event | Description |
---|---|
onActivate | Handler is called by the engine at the of activation of the facet |
onDeactivate | Handler is called by the engine at the time of deactivation |
onOpen | Handler is called, when facet pipeline is opened |
onClose | Handler is called, when facet pipeline if closed |
onRequest | Handler is called when the request is received on the pipeline |
onResponse | Handler is called when the response is send on the pipeline |
onError | If error in pipeline, this handler is called and pipeline gets closed |
Facet Instance
...
Example
The “Hello, World” program is traditionally used to introduce a programming language. Here is an example of Hello, World in FacetScript:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<NewFacetInstance fid="helloworld" name="HelloWorld" type="SffMsgFacet"> <OnActivate/> <OnOpen ModifyPipeline="HttpServerExtensionArgs"/> <OnRequest> <DoResponse> <Process> <Message type="text"> <Value> Hello World from FacetScript! </Value> </Message> </Process> </DoResponse> </OnRequest> <OnResponse/> <OnClose/> </NewFacetInstance> |
For FacetScript Language specs, see here.