com.softslate.commerce.customer.order
Class EstimatedShippingForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by com.softslate.commerce.customer.core.BaseForm
          extended by com.softslate.commerce.customer.order.EstimatedShippingForm
All Implemented Interfaces:
java.io.Serializable

public class EstimatedShippingForm
extends BaseForm

Struts form class representing the delivery information prompted for on the cart page to calculated estimated shipping. It s used for submissions to "/EstimatedShipping.do".

The validate method of this class first checks to see if the user submitted values for the delivery postal code, state and country, which are required to calculate shipping.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  java.lang.String deliveryCity
           
private  java.lang.String deliveryCountry
           
private  java.lang.String deliveryPostalCode
           
private  java.lang.String deliveryState
           
(package private) static org.apache.commons.logging.Log log
           
private static long serialVersionUID
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
EstimatedShippingForm()
           
 
Method Summary
 java.lang.String getDeliveryCity()
           
 java.lang.String getDeliveryCountry()
           
 java.lang.String getDeliveryPostalCode()
           
 java.lang.String getDeliveryState()
           
 void setDeliveryCity(java.lang.String deliveryCity)
           
 void setDeliveryCountry(java.lang.String deliveryCountry)
           
 void setDeliveryPostalCode(java.lang.String deliveryPostalCode)
           
 void setDeliveryState(java.lang.String deliveryState)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

deliveryCity

private java.lang.String deliveryCity

deliveryState

private java.lang.String deliveryState

deliveryPostalCode

private java.lang.String deliveryPostalCode

deliveryCountry

private java.lang.String deliveryCountry
Constructor Detail

EstimatedShippingForm

public EstimatedShippingForm()
Method Detail

getDeliveryCity

public java.lang.String getDeliveryCity()

setDeliveryCity

public void setDeliveryCity(java.lang.String deliveryCity)

getDeliveryState

public java.lang.String getDeliveryState()

setDeliveryState

public void setDeliveryState(java.lang.String deliveryState)

getDeliveryPostalCode

public java.lang.String getDeliveryPostalCode()

setDeliveryPostalCode

public void setDeliveryPostalCode(java.lang.String deliveryPostalCode)

getDeliveryCountry

public java.lang.String getDeliveryCountry()

setDeliveryCountry

public void setDeliveryCountry(java.lang.String deliveryCountry)

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Overrides:
validate in class org.apache.struts.action.ActionForm


Copyright © SoftSlate, LLC 2003–2005