Package com.newmediaworks.taglib.payment
Class CreditCardTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.CreditCardTag
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
Provides the credit card details to a
PaymentTag
.- 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
void
int
static Optional<CreditCardTag>
getCurrent
(ServletRequest request) static CreditCardTag
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
setCreditCardGUID
(String creditCardGUID) 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
setMaskedCardNumber
(String maskedCardNumber) void
void
setPostalCode
(String postalCode) void
void
setStreetAddress1
(String streetAddress1) void
setStreetAddress2
(String streetAddress2) Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, 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
-
CreditCardTag
public CreditCardTag()
-
-
Method Details
-
getCurrent
-
requireCurrent
public static CreditCardTag requireCurrent(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
setCardNumber
- Throws:
JspException
-
setMaskedCardNumber
- Throws:
JspException
-
setExpirationMonth
- Throws:
IllegalArgumentException
JspException
-
setExpirationYear
- Throws:
IllegalArgumentException
JspException
-
setExpirationDate
- Throws:
IllegalArgumentException
JspException
-
setCardCode
- Throws:
JspException
-
setCreditCardGUID
- Throws:
JspException
-
setFirstName
- Throws:
JspException
-
setLastName
- Throws:
JspException
-
setCompanyName
- Throws:
JspException
-
setEmail
- Throws:
JspException
-
setPhone
- Throws:
JspException
-
setFax
- Throws:
JspException
-
setCustomerId
- Throws:
JspException
-
setCustomerTaxId
- Throws:
JspException
-
setStreetAddress1
- Throws:
JspException
-
setStreetAddress2
- Throws:
JspException
-
setCity
- Throws:
JspException
-
setState
- Throws:
JspException
-
setPostalCode
- Throws:
JspException
-
setCountryCode
- Throws:
JspException
-
setComment
- Throws:
JspException
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Throws:
JspException
-
doCatch
- Specified by:
doCatch
in interfaceTryCatchFinally
- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
-