public class DhlServices extends Object
Implementation of DHL US domestic shipment interface using DHL ShipIT XML APi.
Shipment services not supported in DHL ShipIT 1.1Modifier and Type | Field and Description |
---|---|
static String |
DHL_WEIGHT_UOM_ID |
static String |
module |
static String |
resourceError |
static String |
shipmentPropertiesFile |
Constructor and Description |
---|
DhlServices() |
Modifier and Type | Method and Description |
---|---|
static Document |
createAccessRequestDocument(Delegator delegator,
String shipmentGatewayConfigId,
String resource) |
static Map<String,Object> |
dhlRateEstimate(DispatchContext dctx,
Map<String,? extends Object> context) |
static Map<String,Object> |
dhlRegisterInquire(DispatchContext dctx,
Map<String,? extends Object> context) |
static Map<String,Object> |
dhlShipmentConfirm(DispatchContext dctx,
Map<String,? extends Object> context) |
static Map<String,Object> |
handleDhlRateResponse(Document rateResponseDocument,
Locale locale) |
static Map<String,Object> |
handleDhlRegisterResponse(Document registerResponseDocument,
Locale locale) |
static Map<String,Object> |
handleDhlShipmentConfirmResponse(String rateResponseString,
GenericValue shipmentRouteSegment,
List<GenericValue> shipmentPackageRouteSegs,
Locale locale) |
static void |
handleErrors(Element responseElement,
List<Object> errorList,
Locale locale) |
static String |
sendDhlRequest(String xmlString,
Delegator delegator,
String shipmentGatewayConfigId,
String resource,
Locale locale)
Opens a URL to DHL and makes a request.
|
public static final String module
public static final String shipmentPropertiesFile
public static final String DHL_WEIGHT_UOM_ID
public static final String resourceError
public static String sendDhlRequest(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) throws org.apache.ofbiz.shipment.thirdparty.dhl.DhlConnectException
xmlString
- Name of the DHL service to invokedelegator
- the delegatorshipmentGatewayConfigId
- the shipment gateway config idresource
- the resource file (i.e. shipment.properties)locale
- locale in useorg.apache.ofbiz.shipment.thirdparty.dhl.DhlConnectException
public static Map<String,Object> dhlRateEstimate(DispatchContext dctx, Map<String,? extends Object> context)
public static Map<String,Object> handleDhlRateResponse(Document rateResponseDocument, Locale locale)
public static Map<String,Object> dhlRegisterInquire(DispatchContext dctx, Map<String,? extends Object> context)
public static Map<String,Object> handleDhlRegisterResponse(Document registerResponseDocument, Locale locale)
public static Map<String,Object> dhlShipmentConfirm(DispatchContext dctx, Map<String,? extends Object> context)
public static Map<String,Object> handleDhlShipmentConfirmResponse(String rateResponseString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) throws GenericEntityException
GenericEntityException
public static Document createAccessRequestDocument(Delegator delegator, String shipmentGatewayConfigId, String resource)