Package com.hybris.cis.service.impl
Class DefaultCisClientGeolocationService
- java.lang.Object
-
- com.hybris.cis.service.impl.DefaultCisClientGeolocationService
-
- All Implemented Interfaces:
CisClientGeolocationService,CisClientService
public class DefaultCisClientGeolocationService extends java.lang.Object implements CisClientGeolocationService
Default implementation forCisClientGeolocationService
-
-
Constructor Summary
Constructors Constructor Description DefaultCisClientGeolocationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoLocationResultgetGeolocation(java.lang.String xCisClientRef, java.lang.String tenantId, CisLocationRequest location)Rest client to look up geolocations.protected GeolocationClientgetGeolocationClient()booleanping(java.lang.String xCisClientRef, java.lang.String tenantId)Checks if service is functioning and connecting with current credentials.voidsetGeolocationClient(GeolocationClient geolocationClient)
-
-
-
Method Detail
-
getGeolocation
public GeoLocationResult getGeolocation(java.lang.String xCisClientRef, java.lang.String tenantId, CisLocationRequest location) throws AbstractCisServiceException
Description copied from interface:CisClientGeolocationServiceRest client to look up geolocations.- Specified by:
getGeolocationin interfaceCisClientGeolocationService- Parameters:
xCisClientRef- client ref to pass in the headertenantId- tenantId to pass in the headerlocation- a location request containing at least zip code and country, optionally city- Throws:
AbstractCisServiceException
-
ping
public boolean ping(java.lang.String xCisClientRef, java.lang.String tenantId)Description copied from interface:CisClientServiceChecks if service is functioning and connecting with current credentials.- Specified by:
pingin interfaceCisClientService- Parameters:
xCisClientRef- client ref to pass in the headertenantId- tenantId to pass in the header- Returns:
- flag if the service is accessible or not
-
getGeolocationClient
protected GeolocationClient getGeolocationClient()
-
setGeolocationClient
public void setGeolocationClient(GeolocationClient geolocationClient)
-
-