public class DefaultCisClientGeolocationService extends java.lang.Object implements CisClientGeolocationService
CisClientGeolocationService| Constructor and Description |
|---|
DefaultCisClientGeolocationService() |
| Modifier and Type | Method and Description |
|---|---|
GeoLocationResult |
getGeolocation(java.lang.String xCisClientRef,
java.lang.String tenantId,
CisLocationRequest location)
Rest client to look up geolocations.
|
protected GeolocationClient |
getGeolocationClient() |
boolean |
ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
Checks if service is functioning and connecting with current credentials.
|
void |
setGeolocationClient(GeolocationClient geolocationClient) |
public GeoLocationResult getGeolocation(java.lang.String xCisClientRef, java.lang.String tenantId, CisLocationRequest location) throws AbstractCisServiceException
CisClientGeolocationServicegetGeolocation in interface CisClientGeolocationServicexCisClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerlocation - a location request containing at least zip code and country, optionally cityAbstractCisServiceExceptionpublic boolean ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
CisClientServiceping in interface CisClientServicexCisClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerprotected GeolocationClient getGeolocationClient()
public void setGeolocationClient(GeolocationClient geolocationClient)
Copyright © 2018 SAP SE. All Rights Reserved.