© 2001 BEA Systems, Inc.

com.beasys.commerce.ebusiness.shipping.pipeline
Class CalculateShippingPC

java.lang.Object
  |
  +--com.beasys.commerce.foundation.pipeline.CommercePipelineComponent
        |
        +--com.beasys.commerce.ebusiness.shipping.pipeline.CalculateShippingPC
All Implemented Interfaces:
PipelineComponent

public class CalculateShippingPC
extends CommercePipelineComponent

This calculates a fixed shipping cost. It uses the price attribute on the selected shipping method to calculate the shipping cost.


Constructor Summary
CalculateShippingPC()
           
 
Method Summary
 PipelineSession process(PipelineSession pipelineSession)
          Calculates the shipping cost and updates the shopping cart to reflect the change.
 
Methods inherited from class com.beasys.commerce.foundation.pipeline.CommercePipelineComponent
getConnection, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculateShippingPC

public CalculateShippingPC()
Method Detail

process

public PipelineSession process(PipelineSession pipelineSession)
                        throws PipelineFatalException
Calculates the shipping cost and updates the shopping cart to reflect the change.
Parameters:
PipelineSession - the PipelineSession.
Throws:
InvalidPipelineSessionStateException - if the ShoppingCart is missing in the PipelineSession.
PipelineFatalException - in the following cases:
  • If the shopping cart is empty.
  • If the shiping method is not specified.
  • If a currency is invalid.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved