public class FedexServices extends Object
Modifier and Type | Field and Description |
---|---|
static String |
module |
static String |
resourceError |
static String |
shipmentPropertiesFile |
Constructor and Description |
---|
FedexServices() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
fedexShipRequest(DispatchContext dctx,
Map<String,? extends Object> context)
Send a FDXShipRequest via the Ship Manager Direct API
|
static Map<String,Object> |
fedexSubscriptionRequest(DispatchContext dctx,
Map<String,? extends Object> context) |
static void |
handleErrors(Element rootElement,
List<Object> errorList,
Locale locale) |
static Map<String,Object> |
handleFedexShipReply(String fDXShipReplyString,
GenericValue shipmentRouteSegment,
List<GenericValue> shipmentPackageRouteSegs,
Locale locale)
Extract the tracking number and shipping label from the FDXShipReply XML string
|
static String |
sendFedexRequest(String xmlString,
Delegator delegator,
String shipmentGatewayConfigId,
String resource,
Locale locale)
Opens a URL to Fedex and makes a request.
|
public static final String module
public static final String shipmentPropertiesFile
public static final String resourceError
public static String sendFedexRequest(String xmlString, Delegator delegator, String shipmentGatewayConfigId, String resource, Locale locale) throws org.apache.ofbiz.shipment.thirdparty.fedex.FedexConnectException
xmlString
- XML message to senddelegator
- the delegatorshipmentGatewayConfigId
- the shipmentGatewayConfigIdresource
- resource file nameorg.apache.ofbiz.shipment.thirdparty.fedex.FedexConnectException
public static Map<String,Object> fedexSubscriptionRequest(DispatchContext dctx, Map<String,? extends Object> context)
public static Map<String,Object> fedexShipRequest(DispatchContext dctx, Map<String,? extends Object> context)
public static Map<String,Object> handleFedexShipReply(String fDXShipReplyString, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) throws GenericEntityException
fDXShipReplyString
- shipmentRouteSegment
- shipmentPackageRouteSegs
- GenericEntityException