© 2001 BEA Systems, Inc.

com.beasys.commerce.ebusiness.shipping.webflow
Class ValidateAddressIP

java.lang.Object
  |
  +--com.beasys.commerce.webflow.CommerceInputProcessor
        |
        +--com.beasys.commerce.ebusiness.shipping.webflow.ValidateAddressIP
All Implemented Interfaces:
InputProcessor, SchemaManagerConstants, UserManagementConstants

public class ValidateAddressIP
extends CommerceInputProcessor

ValidateAddressIP retrieves shipping address parameters from the HttpServletRequest, and validates if all the required parameters are present. It saves the address into the PipelineSession as the PipelineSessionConstants.ADDRESS attribute, where it can be later accessed by the corresponding pipeline component.


Fields inherited from class com.beasys.commerce.webflow.CommerceInputProcessor
debug
 
Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants
ANONYMOUS_PROFILE, CACHED_PROFILE, DEFAULT_SCOPE, DEFAULT_SUCCESSOR, DEFAULT_SUCCESSOR_HOME, DEFAULT_SUCCESSOR_JNDI, DEFAULT_SUCCESSOR_PK, DEFAULT_USER, DEFAULT_USER_HOME, DEFAULT_USER_JNDI, DEFAULT_USER_PK, GROUP, GROUP_ENTITY_HOME, PROFILE_MGR, PROFILE_SUCCESSOR, PROFILE_USER, REALM_CONFIG, RESERVED_SCOPE, USER, USER_ENTITY_HOME, USER_MGR
 
Fields inherited from interface com.beasys.commerce.foundation.property.SchemaManagerConstants
APPLICATION_INIT_TYPE, CATALOG_TYPE, CONTENT_TYPE, EVENT_TYPE, REQUEST_TYPE, SCHEMA, SCHEMA_GROUPS, SCHEMA_MANAGER, SESSION_TYPE, USER_TYPE
 
Constructor Summary
ValidateAddressIP()
           
 
Method Summary
protected  void getAddress(javax.servlet.http.HttpServletRequest request, Address address, ValidatedValues validatedValues, ValidationStatus invalidFieldIsPresent)
          Get all the field values from the HTTPSession associated with customer shipping address and validate them.
 java.lang.String process(javax.servlet.http.HttpServletRequest request)
          Processes address parameters present in the HttpServletRequest.
 
Methods inherited from class com.beasys.commerce.webflow.CommerceInputProcessor
getCachedProfileBean, getCustomerProperty, getCustomerPropertyAsString, getPipelineSession, getPipelineSession, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateAddressIP

public ValidateAddressIP()
Method Detail

process

public java.lang.String process(javax.servlet.http.HttpServletRequest request)
                         throws ProcessingException
Processes address parameters present in the HttpServletRequest.
Parameters:
request - HttpServletRequest object which holds address data
Returns:
upon method completion always returns String "success"
Throws:
ProcessingException -
  • If any of the required fields were empty
  • If HttpSession times out.

getAddress

protected void getAddress(javax.servlet.http.HttpServletRequest request,
                          Address address,
                          ValidatedValues validatedValues,
                          ValidationStatus invalidFieldIsPresent)
Get all the field values from the HTTPSession associated with customer shipping address and validate them.
Parameters:
request - the HttpServletRequest object associated with current HTTP request.
address - empty Address object
validatedValues - ValidatedValues object to keep the status of all HttpServletRequest parameters.
invalidFieldIsPresent - validation status of the field values

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved