com.softslate.commerce.businessobjects.shipping
Class BasicShippingProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
com.softslate.commerce.businessobjects.shipping.BasicShippingProcessor
- All Implemented Interfaces:
- BusinessObject, BusinessProcessor, ShippingProcessor
- public class BasicShippingProcessor
- extends BaseShippingProcessor
- implements ShippingProcessor
Loads shipping options and processes shipping charges in the store. This
implementation looks up the shipping methods and rates configured in the
npcShippingMethod
and npcShippingRates
tables,
which provide for number of table-based shipping methods.
BasicShippingProcessor
is the default implementation of the
ShippingProcessor
interface for the application.
- Version:
- $Id: BasicShippingProcessor.java,v 1.3 2004/10/28 15:07:13 dtobey
Exp $
- Author:
- David Tobey
- See Also:
ShippingProcessor
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
BasicShippingProcessor
public BasicShippingProcessor()
loadShippingOptions
public java.util.Collection loadShippingOptions()
throws java.lang.Exception
- Description copied from interface:
ShippingProcessor
- Load the shipping options related to this
ShippingProcessor
.
Shipping options might include, for example, ground, 2-day air, bulk,
etc.
The Collection
returned should be a collection of
Map
objects that must include the following keys:
- code: A unique
String
code for the shipping option
under this shipping processor. E.g., "GROUND".
- name: The
String
name of the shipping option for
diplay to users. E.g., "Ground".
- price: The formatted price for the shipping option represented as a
String
and including currency formatting, for display to
the user.
- Specified by:
loadShippingOptions
in interface ShippingProcessor
- Specified by:
loadShippingOptions
in class BaseShippingProcessor
- Throws:
java.lang.Exception
processShipping
public int processShipping()
throws java.lang.Exception
- Specified by:
processShipping
in class BaseShippingProcessor
- Throws:
java.lang.Exception
loadActiveMethodsAndRates
public java.util.Collection loadActiveMethodsAndRates()
throws java.lang.Exception
- Throws:
java.lang.Exception
loadActiveRatesByMethodCode
public java.util.Collection loadActiveRatesByMethodCode(java.lang.String code)
throws java.lang.Exception
- Throws:
java.lang.Exception
computeShippingOptions
public java.util.Collection computeShippingOptions(java.util.Collection methodsAndRates)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © SoftSlate, Inc. 20032005