Package com.newmediaworks.taglib.payment
Class StoreCreditCardTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.StoreCreditCardTag
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
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 javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
doEndTag()
Stores the card at end tag because values are provided by nested tags.void
int
static Optional<StoreCreditCardTag>
getCurrent
(ServletRequest request) static StoreCreditCardTag
requireCurrent
(String fromName, ServletRequest request) void
setCardCode
(String cardCode) void
setCardNumber
(String cardNumber) void
void
setComment
(String comment) void
setCompanyName
(String companyName) void
setCountryCode
(String countryCode) void
setCustomerId
(String customerId) void
setCustomerTaxId
(String customerTaxId) void
void
setExpirationDate
(String expirationDate) void
setExpirationMonth
(byte expirationMonth) void
setExpirationYear
(short expirationYear) void
void
setFirstName
(String firstName) void
setLastName
(String lastName) void
void
setPostalCode
(String postalCode) void
void
setStreetAddress1
(String streetAddress1) void
setStreetAddress2
(String streetAddress2) Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.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:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Throws:
JspException
-
doEndTag
Stores the card at end tag because values are provided by nested tags.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classBodyTagSupport
- Throws:
JspException
-
doCatch
- Specified by:
doCatch
in interfaceTryCatchFinally
- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
-