| Namespace | http://www.mulesoft.org/schema/mule/PuSH-subscriber |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/PuSH-subscriber/current/mule-PuSH-subscriber.xsd (View Schema) |
| Schema Version | 3.3 |
| Minimum Mule Version | 3.2 |
Allows Mule to act as a PubSubHubbub (aka PuSH) subscriber.
Pubsubhubbub is a simple, open, web-hook-based pubsub protocol & open source reference implementation.
This module implements the PubSubHubbub Core 0.3 -- Working Draft
specification, except 7.5 Aggregated
Content Distribution.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Handle all subscriber requests.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:PuSH-subscriber="http://www.mulesoft.org/schema/mule/PuSH-subscriber"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/PuSH-subscriber
http://www.mulesoft.org/schema/mule/PuSH-subscriber/current/mule-PuSH-subscriber.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Optional. Give a name to this configuration so it can be later referenced. | |||||||
The URL that the hub should call back, which is the public URL of the HTTP inbound endpoint placed in front of
the subscriber element. |
|||||||||||
| The URL of the PubSubHubbub to connect to. | |||||||||||
| 604800 | Optional. (Optional) Number of seconds for which the subscriber would like to have the subscription active. | ||||||||||
| Optional. (Optional) A subscriber-provided secret string that will be used to compute an HMAC digest for authorized content distribution. | |||||||||||
| The topic URL that the subscriber wishes to subscribe to. | |||||||||||
Handle all subscriber requests.
INCLUDE_ERROR
| Name | Default Value | Description |
|---|---|---|
| Optional. Specify which configuration to use. | ||
| The HTTP method name | ||
| The content-type of the request | ||
| Optional. (Optional) number of subscribers this subscriber is representing, should be either an integer or a Mule expression | ||
| The message payload | ||
| The callback to call when content is propagated |
| Payload Class | Description |
|---|---|
| Exception | |
| MuleException | |
| DecoderException | |
| Exception |