Creating a custom subscription

You must create a custom subscription object if you want user events to be processed automatically by your own Java class. You use the REST API to create the subscription object.

About this task

To create a custom subscription by using the REST API, send an HTTP POST message to the following URL:
http://hostname:port/WSRR/8.5/Content/Subscription
If you have multiple instances of WSRR deployed, you must identify the instance by specifying its prefix:
http://hostname:port/prefixWSRR/8.5/Content/Subscription
Where prefix is the WSRR Instance Prefix that you specified when you created the instance.
The body of the message must include the following property setting:
<property name="_notifierType" value="your_notifier_type"/>
The value of the _notifierType property must match the value of the type attribute of a plug-in definition in the subscription notifier plug-in configuration file. Then, user events are sent to the Java class specified in that plug-in definition; see the Related link for further information.
Optionally, you can include the following property setting to specify your custom endpoint to which notification messages are sent:
<property name="_endPointReference" value="your_custom_endpoint"/>

For full details of the message body, and the response message that is returned, see the following subtopics: