Class StoreCreditCardTag

All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally

public class StoreCreditCardTag extends BodyTagSupport implements TryCatchFinally
Stores a credit card number to a bank-provided, CISP-compliant storage mechanism.
Author:
New Media Works
See Also:
  • Field Details

  • Constructor Details

    • StoreCreditCardTag

      public StoreCreditCardTag()
  • Method Details

    • getCurrent

      public static Optional<StoreCreditCardTag> getCurrent(ServletRequest request)
    • requireCurrent

      public static StoreCreditCardTag requireCurrent(String fromName, ServletRequest request) throws JspException
      Throws:
      JspException
    • setCardNumber

      public void setCardNumber(String cardNumber)
    • setExpirationMonth

      public void setExpirationMonth(byte expirationMonth)
    • setExpirationYear

      public void setExpirationYear(short expirationYear)
    • setExpirationDate

      public void setExpirationDate(String expirationDate)
    • setCardCode

      public void setCardCode(String cardCode)
    • setFirstName

      public void setFirstName(String firstName)
    • setLastName

      public void setLastName(String lastName)
    • setCompanyName

      public void setCompanyName(String companyName)
    • setEmail

      public void setEmail(String email)
    • setPhone

      public void setPhone(String phone)
    • setFax

      public void setFax(String fax)
    • setCustomerId

      public void setCustomerId(String customerId)
    • setCustomerTaxId

      public void setCustomerTaxId(String customerTaxId)
    • setStreetAddress1

      public void setStreetAddress1(String streetAddress1)
    • setStreetAddress2

      public void setStreetAddress2(String streetAddress2)
    • setCity

      public void setCity(String city)
    • setState

      public void setState(String state)
    • setPostalCode

      public void setPostalCode(String postalCode)
    • setCountryCode

      public void setCountryCode(String countryCode)
    • setComment

      public void setComment(String comment)
    • doStartTag

      public int doStartTag() throws JspException
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class BodyTagSupport
      Throws:
      JspException
    • doEndTag

      public int doEndTag() throws JspException
      Stores the card at end tag because values are provided by nested tags.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class BodyTagSupport
      Throws:
      JspException
    • doCatch

      public void doCatch(Throwable t) throws Throwable
      Specified by:
      doCatch in interface TryCatchFinally
      Throws:
      Throwable
    • doFinally

      public void doFinally()
      Specified by:
      doFinally in interface TryCatchFinally