@Service public class NgsiRestClient extends NgsiClient
asyncRestTemplate, poolingNHttpClientConnectionManager, protocolRegistry| Constructor and Description |
|---|
NgsiRestClient() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
appendContextAttribute(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName,
UpdateContextAttribute updateContextAttribute)
Append an attribute to a context element
|
org.springframework.util.concurrent.ListenableFuture<AppendContextElementResponse> |
appendContextElement(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
AppendContextElement appendContextElement)
Append attributes to a context element
|
org.springframework.util.concurrent.ListenableFuture<SubscribeContextResponse> |
appendContextSubscription(String url,
org.springframework.http.HttpHeaders httpHeaders,
SubscribeContext subscribeContext)
Add a subscription
|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
deleteContextAttribute(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName)
Retrieve an attribute of a context element
|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
deleteContextAttributeValue(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName,
String valueID)
Delete the attribute value instance of a context element
|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
deleteContextElement(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID)
Delete a context element
|
org.springframework.util.concurrent.ListenableFuture<UnsubscribeContextResponse> |
deleteContextSubscription(String url,
org.springframework.http.HttpHeaders httpHeaders,
String subscriptionID)
Delete a subscription
|
org.springframework.util.concurrent.ListenableFuture<ContextAttributeResponse> |
getContextAttribute(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName)
Retrieve an attribute of a context element
|
org.springframework.util.concurrent.ListenableFuture<ContextAttributeResponse> |
getContextAttributeValue(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName,
String valueID)
Retrieve the attribute value instance of a context element
|
org.springframework.util.concurrent.ListenableFuture<ContextElementResponse> |
getContextElement(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID)
Retrieve a context element
|
org.springframework.util.concurrent.ListenableFuture<QueryContextResponse> |
getContextEntityType(String url,
org.springframework.http.HttpHeaders httpHeaders,
String typeName)
Retrieve a context entity type
|
org.springframework.util.concurrent.ListenableFuture<QueryContextResponse> |
getContextEntityTypeAttribute(String url,
org.springframework.http.HttpHeaders httpHeaders,
String typeName,
String attributeName)
Retrieve a context entity type attribute
|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
updateContextAttribute(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName,
UpdateContextAttribute updateContextAttribute)
Update the attribute of a context element
|
org.springframework.util.concurrent.ListenableFuture<StatusCode> |
updateContextAttributeValue(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
String attributeName,
String valueID,
UpdateContextAttribute updateContextAttribute)
Update the attribute value instance of a context element
|
org.springframework.util.concurrent.ListenableFuture<UpdateContextElementResponse> |
updateContextElement(String url,
org.springframework.http.HttpHeaders httpHeaders,
String entityID,
UpdateContextElement updateContextElement)
Append attributes to a context element
|
org.springframework.util.concurrent.ListenableFuture<UpdateContextSubscriptionResponse> |
updateContextSubscription(String url,
org.springframework.http.HttpHeaders httpHeaders,
String subscriptionID,
UpdateContextSubscription updateContextSubscription)
Update a subscription
|
getRequestHeaders, getRequestHeaders, notifyContext, notifyContextCustomURL, queryContext, registerContext, request, request, shutdownGracefully, subscribeContext, unsubscribeContext, updateContext, updateContextSubscriptionpublic org.springframework.util.concurrent.ListenableFuture<AppendContextElementResponse> appendContextElement(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, AppendContextElement appendContextElement)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityappendContextElement - attributes to appendpublic org.springframework.util.concurrent.ListenableFuture<UpdateContextElementResponse> updateContextElement(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, UpdateContextElement updateContextElement)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityupdateContextElement - attributes to updatepublic org.springframework.util.concurrent.ListenableFuture<ContextElementResponse> getContextElement(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entitypublic org.springframework.util.concurrent.ListenableFuture<StatusCode> deleteContextElement(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entitypublic org.springframework.util.concurrent.ListenableFuture<StatusCode> appendContextAttribute(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName, UpdateContextAttribute updateContextAttribute)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributeupdateContextAttribute - attribute to appendpublic org.springframework.util.concurrent.ListenableFuture<StatusCode> updateContextAttribute(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName, UpdateContextAttribute updateContextAttribute)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributeupdateContextAttribute - attribute to updatepublic org.springframework.util.concurrent.ListenableFuture<ContextAttributeResponse> getContextAttribute(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributepublic org.springframework.util.concurrent.ListenableFuture<StatusCode> deleteContextAttribute(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributepublic org.springframework.util.concurrent.ListenableFuture<StatusCode> updateContextAttributeValue(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName, String valueID, UpdateContextAttribute updateContextAttribute)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributevalueID - the instant ID of the attributeupdateContextAttribute - attribute values to updatepublic org.springframework.util.concurrent.ListenableFuture<ContextAttributeResponse> getContextAttributeValue(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName, String valueID)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributevalueID - the instant ID of the attributepublic org.springframework.util.concurrent.ListenableFuture<StatusCode> deleteContextAttributeValue(String url, org.springframework.http.HttpHeaders httpHeaders, String entityID, String attributeName, String valueID)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultentityID - the ID of the entityattributeName - the name of the attributevalueID - the instant ID of the attributepublic org.springframework.util.concurrent.ListenableFuture<QueryContextResponse> getContextEntityType(String url, org.springframework.http.HttpHeaders httpHeaders, String typeName)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaulttypeName - the name of the entity typepublic org.springframework.util.concurrent.ListenableFuture<QueryContextResponse> getContextEntityTypeAttribute(String url, org.springframework.http.HttpHeaders httpHeaders, String typeName, String attributeName)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaulttypeName - the name of the entity typeattributeName - the name of the attributepublic org.springframework.util.concurrent.ListenableFuture<SubscribeContextResponse> appendContextSubscription(String url, org.springframework.http.HttpHeaders httpHeaders, SubscribeContext subscribeContext)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultsubscribeContext - the parameters for subscriptionpublic org.springframework.util.concurrent.ListenableFuture<UpdateContextSubscriptionResponse> updateContextSubscription(String url, org.springframework.http.HttpHeaders httpHeaders, String subscriptionID, UpdateContextSubscription updateContextSubscription)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultsubscriptionID - the ID of the subscription to updateupdateContextSubscription - the parameters to updatepublic org.springframework.util.concurrent.ListenableFuture<UnsubscribeContextResponse> deleteContextSubscription(String url, org.springframework.http.HttpHeaders httpHeaders, String subscriptionID)
url - the URL of the brokerhttpHeaders - the HTTP header to use, or null for defaultsubscriptionID - the ID of the subscription to deleteCopyright © 2016 Orange. All rights reserved.