Package com.caplin.streamlink
Interface JsonSubscriptionParameters
- All Superinterfaces:
SubscriptionParameters
Defines the parameters used for Json subscriptions.
To create an instance of JsonSubscriptionParameters
, use the
{@link com.caplin.streamlink.StreamLink.createJsonSubscriptionParameters()} method.
-
Method Summary
Modifier and TypeMethodDescriptionFor REST operations this adds a HTTP header to be used by the resulting REST request.Sets the filter that restricts the the information returned by the subscription.
-
Method Details
-
setFilter
Sets the filter that restricts the the information returned by the subscription. The filtering is performed by the Liberator, rather than the client, so that bandwidth and client side processing are reduced.
For more details on the format of the filter string, please see https://goessner.net/articles/JsonPath/.
- Parameters:
filter
- The filter string.- Returns:
- The updated
JsonSubscriptionParameters
object to permit a fluent style.
-
addHeader
For REST operations this adds a HTTP header to be used by the resulting REST request. The order in which the headers are added will be the order in which they are applied to the REST operation.
- Parameters:
name
- the name of the HTTP headervalue
- the value of the header- Returns:
- The updated
JsonSubscriptionParameters
object to permit a fluent style.
-