com.beasys.commerce.ebusiness.customer.webflow
Class UpdatePaymentInfoIP
java.lang.Object
|
+--com.beasys.commerce.webflow.CommerceInputProcessor
|
+--com.beasys.commerce.ebusiness.customer.webflow.UpdatePaymentInfoIP
- All Implemented Interfaces:
- InputProcessor, SchemaManagerConstants, UserManagementConstants
- public class UpdatePaymentInfoIP
- extends CommerceInputProcessor
UpdatePaymentInfoIP
processes the input from HttpServletRequest and allows customer
to update credit card information.
It does the following
- Extracts and validates the customer's credit card information from HTTP request
- Uses above information and constructs the
CustomerValue
object.
- Puts the
CustomerValue
object into the PipelineSession
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 |
Method Summary |
protected java.lang.String |
getCustomerCreditCardInfo(javax.servlet.http.HttpServletRequest req,
CreditCard creditCard,
ValidatedValues validatedValues,
ValidationStatus invalidFieldIsPresent)
Extracts and validates all HttpServletRequest parameters associated with customer's credit card information. |
java.lang.String |
process(javax.servlet.http.HttpServletRequest req)
See the class documentation above. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdatePaymentInfoIP
public UpdatePaymentInfoIP()
process
public java.lang.String process(javax.servlet.http.HttpServletRequest req)
throws InvalidInputException,
InvalidSessionStateException
- See the class documentation above.
- Parameters:
req
- the HttpServletRequest object associated with current HTTP request.- Returns:
- upon method completion always returns String "success"
- Throws:
InvalidInputException
- if any of the required fields were empty or invalid.InvalidSessionStateException
- if HttpSession times out.
getCustomerCreditCardInfo
protected java.lang.String getCustomerCreditCardInfo(javax.servlet.http.HttpServletRequest req,
CreditCard creditCard,
ValidatedValues validatedValues,
ValidationStatus invalidFieldIsPresent)
- Extracts and validates all HttpServletRequest parameters associated with customer's credit card information.
- Parameters:
req
- the HttpServletRequest
object associated with current HTTP request.creditCard
- the CreditCard
object which stores the credit card and billing address information.validatedValues
- ValidatedValues
object to keep the status of all HttpServletRequest parameters.invalidFieldIsPresent
- validation status of the field values.- Returns:
- MapKey of a Credit Card
Copyright © 2001 BEA Systems, Inc. All Rights Reserved