Package com.hybris.cis.service.impl
Class DefaultCisClientShippingService
- java.lang.Object
-
- com.hybris.cis.service.impl.DefaultCisClientShippingService
-
- All Implemented Interfaces:
CisClientService,CisClientShippingService
public class DefaultCisClientShippingService extends java.lang.Object implements CisClientShippingService
Default implementation forCisClientShippingService
-
-
Constructor Summary
Constructors Constructor Description DefaultCisClientShippingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CisShipmentcreateShipment(java.lang.String xClientRef, java.lang.String tenantId, CisShipment cisShipment)Creates a shipment.byte[]getLabel(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI labelLocation)Gets the shipment label.protected ShippingClientgetShippingClient()booleanping(java.lang.String xCisClientRef, java.lang.String tenantId)Checks if service is functioning and connecting with current credentials.voidsetShippingClient(ShippingClient shippingClient)
-
-
-
Method Detail
-
createShipment
public CisShipment createShipment(java.lang.String xClientRef, java.lang.String tenantId, CisShipment cisShipment)
Description copied from interface:CisClientShippingServiceCreates a shipment.- Specified by:
createShipmentin interfaceCisClientShippingService- Parameters:
xClientRef- client ref to pass in the headertenantId- tenantId to pass in the headercisShipment- shipment to create- Returns:
- the shipment
-
getLabel
public byte[] getLabel(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI labelLocation)Description copied from interface:CisClientShippingServiceGets the shipment label.- Specified by:
getLabelin interfaceCisClientShippingService- Parameters:
xClientRef- client ref to pass in the headertenantId- tenantId to pass in the headerlabelLocation- location of the label- Returns:
- the label as a stream (can be different files format, see the media type of the rest response)
-
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
-
getShippingClient
protected ShippingClient getShippingClient()
-
setShippingClient
public void setShippingClient(ShippingClient shippingClient)
-
-