Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

EventDescription
onActivateHandler is called by the engine at the of activation of the facet
onDeactivateHandler is called by the engine at the time of deactivation
onOpenHandler is called, when facet pipeline is opened
onCloseHandler is called, when facet pipeline if closed
onRequestHandler is called when the request is received on the pipeline
onResponseHandler is called when the response is send on the pipeline
onErrorIf 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
languagexml
themeEclipse
titleNewFacetInstance HelloWorld Example
linenumberstrue
<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.