Class UpsServices
java.lang.Object
org.apache.ofbiz.shipment.thirdparty.ups.UpsServices
UPS ShipmentServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
createAccessRequestDocument
(Delegator delegator, String shipmentGatewayConfigId, String serviceConfigProps) static void
handleErrors
(Element responseElement, List<Object> errorList, Locale locale) handleUpsAddressValidationResponse
(Document rateResponseDocument, Locale locale) handleUpsAlternateRatesInquireResponse
(Document rateResponseDocument, Locale locale) handleUpsRateInquireResponse
(Document rateResponseDocument, Locale locale) handleUpsShipmentAcceptResponse
(Document shipmentAcceptResponseDocument, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Delegator delegator, String shipmentGatewayConfigId, String resource, Map<String, ? extends Object> context, Locale locale) handleUpsShipmentConfirmResponse
(Document shipmentConfirmResponseDocument, GenericValue shipmentRouteSegment, Locale locale) handleUpsTrackShipmentResponse
(Document trackResponseDocument, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) handleUpsVoidShipmentResponse
(Document voidShipmentResponseDocument, GenericValue shipmentRouteSegment, Locale locale) static String
sendUpsRequest
(String upsService, String xmlString, String shipmentGatewayConfigId, String resource, Delegator delegator, Locale locale) Opens a URL to UPS and makes a request.upsAddressValidation
(DispatchContext dctx, Map<String, ? extends Object> context) upsEmailReturnLabel
(DispatchContext dctx, Map<String, ? extends Object> context) upsRateInquire
(DispatchContext dctx, Map<String, ? extends Object> context) upsRateInquireByPostalCode
(DispatchContext dctx, Map<String, ? extends Object> context) upsShipmentAccept
(DispatchContext dctx, Map<String, ? extends Object> context) upsShipmentAlternateRatesInquiry
(DispatchContext dctx, Map<String, ? extends Object> context) upsShipmentConfirm
(DispatchContext dctx, Map<String, ? extends Object> context) upsTrackShipment
(DispatchContext dctx, Map<String, ? extends Object> context) upsVoidShipment
(DispatchContext dctx, Map<String, ? extends Object> context)
-
Constructor Details
-
UpsServices
public UpsServices()
-
-
Method Details
-
upsShipmentConfirm
-
handleUpsShipmentConfirmResponse
public static Map<String,Object> handleUpsShipmentConfirmResponse(Document shipmentConfirmResponseDocument, GenericValue shipmentRouteSegment, Locale locale) throws GenericEntityException - Throws:
GenericEntityException
-
upsShipmentAccept
-
handleUpsShipmentAcceptResponse
public static Map<String,Object> handleUpsShipmentAcceptResponse(Document shipmentAcceptResponseDocument, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Delegator delegator, String shipmentGatewayConfigId, String resource, Map<String, ? extends Object> context, Locale locale) throws GenericEntityException- Throws:
GenericEntityException
-
upsVoidShipment
-
handleUpsVoidShipmentResponse
public static Map<String,Object> handleUpsVoidShipmentResponse(Document voidShipmentResponseDocument, GenericValue shipmentRouteSegment, Locale locale) throws GenericEntityException - Throws:
GenericEntityException
-
upsTrackShipment
-
handleUpsTrackShipmentResponse
public static Map<String,Object> handleUpsTrackShipmentResponse(Document trackResponseDocument, GenericValue shipmentRouteSegment, List<GenericValue> shipmentPackageRouteSegs, Locale locale) throws GenericEntityException - Throws:
GenericEntityException
-
upsRateInquire
-
handleUpsRateInquireResponse
-
createAccessRequestDocument
-
handleErrors
-
sendUpsRequest
public static String sendUpsRequest(String upsService, String xmlString, String shipmentGatewayConfigId, String resource, Delegator delegator, Locale locale) throws org.apache.ofbiz.shipment.thirdparty.ups.UpsConnectException Opens a URL to UPS and makes a request.- Parameters:
upsService
- Name of the UPS service to invokexmlString
- XML message to send- Returns:
- XML string response from UPS
- Throws:
org.apache.ofbiz.shipment.thirdparty.ups.UpsConnectException
-
upsRateInquireByPostalCode
-
upsAddressValidation
-
handleUpsAddressValidationResponse
-
upsEmailReturnLabel
-
upsShipmentAlternateRatesInquiry
-
handleUpsAlternateRatesInquireResponse
-