Author: hiranya
Date: Thu Dec 22 04:50:50 2011
New Revision: 1222032
URL: http://svn.apache.org/viewvc?rev=1222032&view=rev
Log:
Updated configuration language guide
Modified:
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
Modified:
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml?rev=1222032&r1=1222031&r2=1222032&view=diff
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
(original)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
Thu Dec 22 04:50:50 2011
@@ -24,9 +24,53 @@
</properties>
<body>
<section name="Contents">
-
+ <ul>
+ <li><a href="#Intro">Introduction</a></li>
+ <li>
+ <a href="#SynapseConfig">Synapse Configuration</a>
+ <ul>
+ <li><a href="#ServiceMediation">Service Mediation
(Proxy Services)</a></li>
+ <li><a href="#MessageMediation">Message
Mediation</a></li>
+ <li><a href="#TaskScheduling">Task Scheduling</a></li>
+ <li><a href="#Eventing">Eventing</a></li>
+ </ul>
+ </li>
+ <li>
+ <a href="#OverView">Functional Components Overview</a>
+ <ul>
+ <li><a href="#MediatorsAndSequences">Mediators and
Sequences</a></li>
+ <li><a href="#Endpoints">Endpoints</a></li>
+ <li><a href="#ProxyServices">Proxy Services</a></li>
+ <li><a href="#ScheduledTasks">Scheduled Tasks</a></li>
+ <li><a href="#Registry">Remote Registry and Local
Registry</a></li>
+ <li><a href="#API">APIs</a></li>
+ <li><a href="#PriorityExecutors">Priority
Executors</a></li>
+ </ul>
+ </li>
+ <li><a href="#ConfigFiles">Synapse Configuration Files</a></li>
+ <li><a href="#Syntax">Configuration Syntax</a></li>
+ <li><a href="#RegistryConfig">Registry Configuration</a></li>
+ <li><a href="#LocalEntryConfig">Local Entry (Local Registry)
Configuration</a></li>
+ <li><a href="#SequenceConfig">Sequence Configuration</a></li>
+ <li>
+ <a href="#EndpointConfig">Endpoint Configuration</a>
+ <ul>
+ <li><a href="#AddressEndpointConfig">Address
Endpoint</a></li>
+ <li><a href="#DefaultEndpointConfig">Default
Endpoint</a></li>
+ <li><a href="#WSDLEndpointConfig">WSDL
Endpoint</a></li>
+ <li><a href="#LBEndpointConfig">Load Balance
Endpoint</a></li>
+ <li><a href="#DLBEndpointConfig">Dynamic Load Balance
Endpoint</a></li>
+ <li><a href="#FOEndpointConfig">Fail-Over
Endpoint</a></li>
+ </ul>
+ </li>
+ <li><a href="#ProxyServiceConfig">Proxy Service
Configuration</a></li>
+ <li><a href="#TaskConfig">Scheduled Task Configuration</a></li>
+ <li><a href="#EventSourceConfig">Event Source
Configuration</a></li>
+ <li><a href="#APIConfig">API Configuration</a></li>
+ <li><a href="#ExecutorConfig">Priority Executor
Configuration</a></li>
+ </ul>
</section>
- <section name="Introduction">
+ <section name="Introduction" id="Intro">
<p>
Apache Synapse loads its configuration from a set of XML
files. This enables the
user to easily hand edit the configuration, maintain backups
and even include the
@@ -48,7 +92,7 @@
syntax used to configure various elements in Synapse.
</p>
</section>
- <section name="The Synapse Configuration">
+ <section name="The Synapse Configuration" id="SynapseConfig">
<p>
A typical Synapse configuration is comprised of sequences,
endpoints, proxy services
and local entries. In certain advanced scenarios, Synapse
configuration may also
@@ -83,7 +127,7 @@
Depending on how functional components are used in the Synapse
configuration, Synapse
can execute in one or more of the following operational modes.
</p>
- <subsection name="Service Mediation (Proxy Services)">
+ <subsection name="Service Mediation (Proxy Services)"
id="ServiceMediation">
<p>
In service mediation, the Synapse ESB exposes a service
endpoint on the ESB, which
accepts messages from clients. Typically these services
acts as proxies for existing
@@ -98,7 +142,7 @@
and VFS file systems.
</p>
</subsection>
- <subsection name="Message Mediation">
+ <subsection name="Message Mediation" id="MessageMediation">
<p>
In message mediation, Synapse acts as a transparent proxy
for clients. This way,
Synapse could be configured to filter all the messages on
a network for logging,
@@ -109,7 +153,7 @@
the name 'main'.
</p>
</subsection>
- <subsection name="Task Scheduling">
+ <subsection name="Task Scheduling" id="TaskScheduling">
<p>
In task scheduling, Synapse can execute a predefined task
(job) based on a user
specified schedule. This way a task can be configured to
run exactly once or
@@ -120,7 +164,7 @@
service, poll databases and execute other periodic
maintenance activities.
</p>
</subsection>
- <subsection name="Eventing">
+ <subsection name="Eventing" id="Eventing">
<p>
In eventing mode, Synapse can be used as an event source
and users or systems can
subscribe to receive events from Synapse. Synapse can also
act as an event broker
@@ -131,7 +175,7 @@
</p>
</subsection>
</section>
- <section name="Functional Components Overview">
+ <section name="Functional Components Overview" id="Overview">
<p>
As described in the previous section, Synapse engine is
comprised of a range of
functional components. Synapse configuration language is used
to define, configure
@@ -161,7 +205,7 @@
<li>Message stores and processors</li>
</ul>
</p>
- <subsection name="Mediators and Sequences">
+ <subsection name="Mediators and Sequences"
id="MediatorsAndSequences">
<p>
The Synapse ESB defines a 'mediator' as a component which
performs a predefined
action on a message during a message flow. It is the most
fundamental message
@@ -206,7 +250,7 @@
error is encountered during the execution of the initial
sequence.
</p>
</subsection>
- <subsection name="Endpoints">
+ <subsection name="Endpoints" id="Endpoints">
<p>
An Endpoint definition within Synapse defines an external
service endpoint and
any attributes or semantics that should be followed when
communicating with that
@@ -224,7 +268,7 @@
case the 'send' mediator would forward the message to the
specified endpoint.
</p>
</subsection>
- <subsection name="Proxy Services">
+ <subsection name="Proxy Services" id="ProxyServices">
<p>
A proxy service is a virtual service exposed on Synapse.
For the external
clients, a proxy service looks like a full fledged web
service which has a
@@ -264,7 +308,7 @@
parameters.
</p>
</subsection>
- <subsection name="Scheduled Tasks">
+ <subsection name="Scheduled Tasks" id="ScheduledTasks">
<p>
A scheduled task is a job deployed in the Synapse runtime
for periodic execution.
Users can program the jobs using the task API (Java)
provided by Synapse. Once
@@ -273,7 +317,7 @@
the Unix Cron syntax.
</p>
</subsection>
- <subsection name="Remote Registry and Local Registry (Local
Entries)">
+ <subsection name="Remote Registry and Local Registry (Local
Entries)" id="Registry">
<p>
Synapse configuration can refer to an external
registry/repository for resources
such as WSDLs, schemas, scripts, XSLT and XQuery
transformations etc. One or
@@ -297,7 +341,7 @@
interface to suit the actual registry being used.
</p>
</subsection>
- <subsection name="APIs">
+ <subsection name="APIs" id="API">
<p>
An API is similar to a web application deployed in
Synapse. It provides a
convenient approach for filtering and processing HTTP
traffic (specially RESTful
@@ -326,7 +370,7 @@
not be based on REST.
</p>
</subsection>
- <subsection name="Priority Executors">
+ <subsection name="Priority Executors" id="PriorityExecutors">
<p>
Priority executors can be used to execute sequences with a
given priority.
Priority executors are used in high load scenarios where
user wants to execute
@@ -339,7 +383,7 @@
</p>
</subsection>
</section>
- <section name="Synapse Configuration Files">
+ <section name="Synapse Configuration Files" id="ConfigFiles">
<p>
All the XML files pertaining to the Synapse configuration are
available in the
repository/conf/synapse-config directory of the Synapse
installation. This file
@@ -399,7 +443,12 @@
| `-- task1.xml
`-- templates</div>
</section>
- <section name="Configuration Syntax">
+ <section name="Configuration Syntax" id="Syntax">
+ <p>
+ Synapse ESB is configured using an XML based configuration
language. This is a
+ Domain Specific Language (DSL) created and maintained by the
Synapse community.
+ The language is designed to be simple, intuitive and easy to
learn.
+ </p>
<p>
As stated earlier, the synapse.xml file can be used to define
all kinds of artifacts.
All these different configuration items should be wrapped in a
top level 'definitions'
@@ -432,7 +481,7 @@
types of components in the Synapse configuration.
</p>
</section>
- <section name="Registry" id="registry">
+ <section name="Registry Configuration" id="RegistryConfig">
<p>
The <registry> element is used to define the registry
adapter used by the
Synapse runtime. The registry provider specifies an
implementation class for the
@@ -455,8 +504,8 @@
'SimpleURLRegistry' and this can be configured as follows:
</p>
<div class="xmlConf"><registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
- <parameter
name="root">file:./repository/conf/sample/resources/</parameter>
- <parameter name="cachableDuration">15000</parameter>
+ <parameter
name="root">file:./repository/conf/sample/resources/</parameter>
+ <parameter name="cachableDuration">15000</parameter>
</registry></div>
<p>
The 'root' parameter specifies the root URL of the registry
for loaded resources. The
@@ -468,7 +517,7 @@
expires. (e.g. Check the WSO2 ESB implementation based on
Apache Synapse)
</p>
</section>
- <section name="Local Entries (Local Registry)">
+ <section name="Local Entry (Local Registry) Configuration"
id="LocalEntryConfig">
<p>
Local entries provide a convenient way to import various
external configuration
artifacts into the Synapse runtime. This includes WSDLs,
policies, XSLT files,
@@ -493,7 +542,7 @@
<localEntry key="validate_schema">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- ...
+ ...
</xs:schema>
</localEntry></div>
<p>
@@ -518,14 +567,14 @@
Synapse reloads configuration artifacts as soon as the cache
period expires.
</p>
</section>
- <section name="Sequences" id="sequences">
+ <section name="Sequence Configuration" id="SequenceConfig">
<p>
As explained earlier a sequence resembles a message flow in
Synapse and consists
of an array of mediators. The <sequence> element is used
to define a sequence
in the Synapse configuration. Sequences can be defined with
names so they can be
reused across the Synapse configuration. The sequences named
'main' and 'fault' have
special significance in a Synapse configuration. The 'main'
sequence handles any message
- that is accepted for '<a href="#message_mediation">Message
Mediation</a>'. The
+ that is accepted for '<a href="#MessageMediation">Message
Mediation</a>'. The
'fault' sequence is invoked if Synapse encounters a fault, and
a custom fault handler
is not specified for the sequence via its 'onError' attribute.
If the 'main' or
'fault' sequences are not defined locally or not found in the
Registry, Synapse
@@ -544,7 +593,7 @@
</p>
<div class="xmlConf"><sequence name="string" [onError="string"]
[key="string"] [trace="enable"] [statistics="enable"]>
mediator*
- </sequence></div>
+</sequence></div>
<p>
The 'onError' attribute can be used to define a custom error
handler sequence.
Statistics collection can be activated by setting the
'statistics' attribute to
@@ -580,7 +629,7 @@
local entry or a remote registry entry.
</p>
</section>
- <section name="Endpoints" id="endpoints">
+ <section name="Endpoint Configuration" id="EndpointConfig">
<p>
An <endpoint> element defines a destination for an
outgoing message. There
are several types of endpoints that can be defined in a
Synapse configuration.
@@ -599,9 +648,8 @@
takes the following form.
</p>
<div class="xmlConf"><endpoint [name="string"]
[key="string"]>
- <a href="#address-endpoint">address-endpoint</a> | <a
href="#default-endpoint">default-endpoint</a> | <a
href="#wsdl-endpoint">wsdl-endpoint</a> |
- <a href="#load-balanced-endpoint">load-balanced-endpoint</a> | <a
href="#fail-over-endpoint">fail-over-endpoint</a> |
- <a href="#recipient-list-endpoint">recipient-list-endpoint</a>
+ <a href="#AddressEndpointConfig">address-endpoint</a> | <a
href="#DefaultEndpointConfig">default-endpoint</a> | <a
href="#WSDLEndpointConfig">wsdl-endpoint</a> |
+ <a href="#LBEndpointConfig">load-balanced-endpoint</a> | <a
href="#FOEndpointConfig">fail-over-endpoint</a> | <a
href="#recipient-list-endpoint">recipient-list-endpoint</a>
</endpoint></div>
<p>
Note how the endpoint definitions always start with an
'endpoint' element. The
@@ -621,26 +669,26 @@
to the endpoint. These will be available in the 'trace.log'
file configured via the
log4j.properties file.
</p>
- <subsection name="Address Endpoint">
+ <subsection name="Address Endpoint" id="AddressEndpointConfig">
<div class="xmlConf"><address uri="<em>endpoint
address</em>" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
[encoding="<em>charset encoding</em>"]
[statistics="enable|disable"] [trace="enable|disable"]>
- <enableRM [policy="<em>key</em>"]/>?
- <enableSec [policy="<em>key</em>"]/>?
- <enableAddressing [version="final|submission"]
[separateListener="true|false"]/>?
+ <enableRM [policy="<em>key</em>"]/>?
+ <enableSec [policy="<em>key</em>"]/>?
+ <enableAddressing [version="final|submission"]
[separateListener="true|false"]/>?
- <timeout>
- <duration><em>timeout duration in milliseconds</em></duration>
- <responseAction>discard|fault</responseAction>
- </timeout>?
+ <timeout>
+ <duration><em>timeout duration in
milliseconds</em></duration>
+ <responseAction>discard|fault</responseAction>
+ </timeout>?
- <markForSuspension>
+ <markForSuspension>
[<errorCodes>xxx,yyy</errorCodes>]
<retriesBeforeSuspension>m</retriesBeforeSuspension>
<retryDelay>d</retryDelay>
</markForSuspension>
- <suspendOnFailure>
+ <suspendOnFailure>
[<errorCodes>xxx,yyy</errorCodes>]
<initialDuration>n</initialDuration>
<progressionFactor>r</progressionFactor>
@@ -727,7 +775,7 @@
</tbody>
</table>
</subsection>
- <subsection name="Default Endpoint">
+ <subsection name="Default Endpoint" id="DefaultEndpointConfig">
<p>
Default endpoint is an endpoint defined for adding QoS and
other configurations
to the endpoint which is resolved from the 'To' address of
the message context.
@@ -741,22 +789,22 @@
<div class="xmlConf"><default
[format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
[encoding="<em>charset encoding</em>"]
[statistics="enable|disable"] [trace="enable|disable"]>
- <enableRM [policy="<em>key</em>"]/>?
- <enableSec [policy="<em>key</em>"]/>?
- <enableAddressing [version="final|submission"]
[separateListener="true|false"]/>?
+ <enableRM [policy="<em>key</em>"]/>?
+ <enableSec [policy="<em>key</em>"]/>?
+ <enableAddressing [version="final|submission"]
[separateListener="true|false"]/>?
- <timeout>
- <duration><em>timeout duration in milliseconds</em></duration>
- <responseAction>discard|fault</responseAction>
- </timeout>?
+ <timeout>
+ <duration><em>timeout duration in
milliseconds</em></duration>
+ <responseAction>discard|fault</responseAction>
+ </timeout>?
- <markForSuspension>
+ <markForSuspension>
[<errorCodes>xxx,yyy</errorCodes>]
<retriesBeforeSuspension>m</retriesBeforeSuspension>
<retryDelay>d</retryDelay>
</markForSuspension>
- <suspendOnFailure>
+ <suspendOnFailure>
[<errorCodes>xxx,yyy</errorCodes>]
<initialDuration>n</initialDuration>
<progressionFactor>r</progressionFactor>
@@ -764,7 +812,7 @@
</suspendOnFailure>
</default></div>
</subsection>
- <subsection name="WSDL Endpoint">
+ <subsection name="WSDL Endpoint" id="WSDLEndpointConfig">
<p>
WSDL endpoint is an endpoint definition based on a
specified WSDL document. The
WSDL document can be specified either as a URI or as an
inline definition within
@@ -774,32 +822,32 @@
'timeout' are same as for an Address endpoint.
</p>
<div class="xmlConf"><wsdl [uri="wsdl-uri"] service="qname"
port/endpoint="qname">
- <wsdl:definition>...</wsdl:definition>?
- <wsdl20:description>...</wsdl20:description>?
- <enableRM [policy="key"]/>?
- <enableSec [policy="key"]/>?
- <enableAddressing/>?
+ <wsdl:definition>...</wsdl:definition>?
+ <wsdl20:description>...</wsdl20:description>?
+ <enableRM [policy="key"]/>?
+ <enableSec [policy="key"]/>?
+ <enableAddressing/>?
- <timeout>
+ <timeout>
<duration>timeout duration in milliseconds</duration>
<responseAction>discard|fault</responseAction>
- </timeout>?
- <markForSuspension>
- [<errorCodes>xxx,yyy</errorCodes>]
- <retriesBeforeSuspension>m</retriesBeforeSuspension>
- <retryDelay>d</retryDelay>
- </markForSuspension>
+ </timeout>?
+ <markForSuspension>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <retriesBeforeSuspension>m</retriesBeforeSuspension>
+ <retryDelay>d</retryDelay>
+ </markForSuspension>
- <suspendOnFailure>
- [<errorCodes>xxx,yyy</errorCodes>]
- <initialDuration>n</initialDuration>
- <progressionFactor>r</progressionFactor>
- <maximumDuration>l</maximumDuration>
- </suspendOnFailure>
+ <suspendOnFailure>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <initialDuration>n</initialDuration>
+ <progressionFactor>r</progressionFactor>
+ <maximumDuration>l</maximumDuration>
+ </suspendOnFailure>
- </wsdl></div>
+</wsdl></div>
</subsection>
- <subsection name="Load Balance Endpoint">
+ <subsection name="Load Balance Endpoint" id="LBEndpointConfig">
<p>
A Load balanced endpoint distributes the messages (load)
among a set of listed
endpoints or static members by evaluating the load
balancing policy and any other
@@ -832,12 +880,12 @@
</p>
<div class="xmlConf"><loadBalance [policy="roundRobin"]
[algorithm="impl of
org.apache.synapse.endpoints.algorithms.LoadbalanceAlgorithm"]
[failover="true|false"]>
- <endpoint .../>+
- <member hostName="host" [httpPort="port"] [httpsPort="port2"]>+
- </loadBalance>
- <session type="http|simpleClientSession"/>?</div>
+ <endpoint .../>+
+ <member hostName="host" [httpPort="port"] [httpsPort="port2"]>+
+</loadBalance>
+<session type="http|simpleClientSession"/>?</div>
</subsection>
- <subsection name="Dynamic Load Balance Endpoint">
+ <subsection name="Dynamic Load Balance Endpoint"
id="DLBEndpointConfig">
<p>
This is a special variation of the load balance endpoint
where instead of
having to specify the child endpoints explicitly, the
endpoint automatically
@@ -854,18 +902,17 @@
selected once the currently selected member has failed,
and defaults to true.
</p>
<div class="xmlConf"><dynamicLoadBalance
[policy="roundRobin"] [failover="true|false"]>
- <membershipHandler
- class="impl of
org.apache.synapse.core.LoadBalanceMembershipHandler">
- <property name="name" value="value"/>+
+ <membershipHandler class="impl of
org.apache.synapse.core.LoadBalanceMembershipHandler">
+ <property name="name" value="value"/>+
</membershipHandler>
- </dynamicLoadBalance></div>
+</dynamicLoadBalance></div>
<p>
Currently Synapse ships with one implementation of the
LoadBalanceMembershipHandler
interface. This class is named
'Axis2LoadBalanceMembershipHandler' and its
usage is demonstrated in sample 57.
</p>
</subsection>
- <subsection name="Fail-Over Endpoint">
+ <subsection name="Fail-Over Endpoint" id="FOEndpointConfig">
<p>
Failover endpoints send messages to the listed endpoints
with the following
failover behavior. At the start, the first listed endpoint
is selected as the
@@ -881,34 +928,34 @@
It is possible to disable this behavior by setting the
'dynamic' attribute to false.
</p>
<div class="xmlConf"><failover [dynamic="true|false"]>
- <endpoint .../>+
+ <endpoint .../>+
</failover></div>
</subsection>
</section>
- <section name="Proxy Services">
+ <section name="Proxy Service Configuration" id="ProxyServiceConfig">
<p>
A <proxy> element is used to define a Synapse Proxy
service.
</p>
<div class="xmlConf"><proxy name="string" [transports="(http
|https |jms |.. )+|all"] [pinnedServers="(serverName )+"]
[serviceGroup="string"]>
- <description>...</description>?
- <target [inSequence="name"] [outSequence="name"] [faultSequence="name"]
[endpoint="name"]>
- <inSequence>...</inSequence>?
- <outSequence>...</outSequence>?
- <faultSequence>...</faultSequence>?
- <endpoint>...</endpoint>?
- </target>?
- <publishWSDL key="string" uri="string">
- ( <wsdl:definition>...</wsdl:definition> |
<wsdl20:description>...</wsdl20:description> )?
- <resource location="..." key="..."/>*
- </publishWSDL>?
- <enableAddressing/>?
- <enableSec/>?
- <enableRM/>?
- <policy key="string" [type="(in | out)"]/>? // optional service or
message level policies such as (e.g. WS-Security and/or WS-RM policies)
- <parameter name="string"> // optional service parameters such as
(e.g. transport.jms.ConnectionFactory)
- string | xml
- </parameter>
+ <description>...</description>?
+ <target [inSequence="name"] [outSequence="name"] [faultSequence="name"]
[endpoint="name"]>
+ <inSequence>...</inSequence>?
+ <outSequence>...</outSequence>?
+ <faultSequence>...</faultSequence>?
+ <endpoint>...</endpoint>?
+ </target>?
+ <publishWSDL key="string" uri="string">
+ ( <wsdl:definition>...</wsdl:definition> |
<wsdl20:description>...</wsdl20:description> )?
+ <resource location="..." key="..."/>*
+ </publishWSDL>?
+ <enableAddressing/>?
+ <enableSec/>?
+ <enableRM/>?
+ <policy key="string" [type="(in | out)"]/>? // optional service or
message level policies such as (e.g. WS-Security and/or WS-RM policies)
+ <parameter name="string"> // optional service parameters such as
(e.g. transport.jms.ConnectionFactory)
+ string | xml
+ </parameter>
</proxy></div>
<p>
A proxy service is created and exposed on the specified
transports through the
@@ -1134,16 +1181,16 @@
</tbody>
</table>
</section>
- <section name="Scheduled Tasks">
+ <section name="Scheduled Task Configuration" id="TaskConfig">
<p>
A <task> element is used to define a Synapse task (aka
startup).
</p>
<div class="xmlConf"><task class="mypackage.MyTask"
name="string" [pinnedServers="(serverName)+"]>
- <property name="stringProp" value="String"/>
- <property name="xmlProp">
- <somexml>config</somexml>
- </property>
- <trigger ([[count="10"]? interval="1000"] | [cron="0 * 1 * * ?"] |
[once=(true | false)])/>
+ <property name="stringProp" value="String"/>
+ <property name="xmlProp">
+ <somexml>config</somexml>
+ </property>
+ <trigger ([[count="10"]? interval="1000"] | [cron="0 * 1 * * ?"] |
[once=(true | false)])/>
</task></div>
<p>
A task is created and scheduled to run at specified time
intervals or as specified
@@ -1176,15 +1223,15 @@
or not.
</p>
</section>
- <section name="Event Sources">
+ <section name="Event Source Configuration" id="EventSourceConfig">
<p>
Event sources enable the user to run Synapse in the eventing
mode of operation.
Synapse can act as an event source as well as an event broker.
An event source
is defined using the <eventSource> configuration element.
</p>
<div class="xmlConf"><eventSource name="string">
- <subscriptionManager class="mypackage.MyClass">
- <parameter name="string"/>
+ <subscriptionManager class="mypackage.MyClass">
+ <parameter name="string"/>
</subscriptionManager>
</eventSource></div>
<p>
@@ -1202,20 +1249,21 @@
can be specified using the 'parameter' elements.
</p>
</section>
- <section name="APIs">
+ <section name="API Configuration" id="APIConfig">
<p>
APIs provide a flexible and powerful approach for defining
full fledged REST APIs
in Synapse. An API definition starts with the <api>
element.
</p>
<div class="xmlConf"><api name="string" context="string"
[hostname="string"][port="int"]>
- <resource
[methods="http-method-list"][inSequence="string"][outSequence="string"]
+ <resource
[methods="http-method-list"][inSequence="string"][outSequence="string"]
[faultSequence="string"][content-type="string"][user-agent="str"]>
- <inSequence>...</inSequence>?
- <outSequence>...</outSequence>?
- <faultSequence>...</faultSequence>?
+
+ <inSequence>...</inSequence>?
+ <outSequence>...</outSequence>?
+ <faultSequence>...</faultSequence>?
</resource>+
<handlers>
- <handler class="name"/>+
+ <handler class="name"/>+
</handlers>?
</api></div>
<p>
@@ -1241,7 +1289,7 @@
ful qualified names of the handler implementation classes.
</p>
</section>
- <section name="Priority Executors">
+ <section name="Priority Executor Configuration" id="ExecutorConfig">
<p>
The priority executor configuration syntax takes the following
general form.
</p>