Package com.newmediaworks.taglib.payment
Class StoreCreditCardTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.StoreCreditCardTag
- All Implemented Interfaces:
BodyTag,IterationTag,JspTag,Tag,TryCatchFinally,Serializable
Stores a credit card number to a bank-provided, CISP-compliant storage mechanism.
- Author:
- New Media Works
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintdoEndTag()Stores the card at end tag because values are provided by nested tags.voidintstatic Optional<StoreCreditCardTag> getCurrent(ServletRequest request) static StoreCreditCardTagrequireCurrent(String fromName, ServletRequest request) voidsetCardCode(String cardCode) voidsetCardNumber(String cardNumber) voidvoidsetComment(String comment) voidsetCompanyName(String companyName) voidsetCountryCode(String countryCode) voidsetCustomerId(String customerId) voidsetCustomerTaxId(String customerTaxId) voidvoidsetExpirationDate(String expirationDate) voidsetExpirationMonth(byte expirationMonth) voidsetExpirationYear(short expirationYear) voidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidvoidsetPostalCode(String postalCode) voidvoidsetStreetAddress1(String streetAddress1) voidsetStreetAddress2(String streetAddress2) Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
StoreCreditCardTag
public StoreCreditCardTag()
-
-
Method Details
-
getCurrent
-
requireCurrent
public static StoreCreditCardTag requireCurrent(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
setCardNumber
-
setExpirationMonth
public void setExpirationMonth(byte expirationMonth) -
setExpirationYear
public void setExpirationYear(short expirationYear) -
setExpirationDate
-
setCardCode
-
setFirstName
-
setLastName
-
setCompanyName
-
setEmail
-
setPhone
-
setFax
-
setCustomerId
-
setCustomerTaxId
-
setStreetAddress1
-
setStreetAddress2
-
setCity
-
setState
-
setPostalCode
-
setCountryCode
-
setComment
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Throws:
JspException
-
doEndTag
Stores the card at end tag because values are provided by nested tags.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Throws:
JspException
-
doCatch
- Specified by:
doCatchin interfaceTryCatchFinally- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinallyin interfaceTryCatchFinally
-
