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
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintstatic Optional<CreditCardTag> getCurrent(ServletRequest request) static CreditCardTagrequireCurrent(String fromName, ServletRequest request) voidsetCardCode(String cardCode) voidsetCardNumber(String cardNumber) voidvoidsetComment(String comment) voidsetCompanyName(String companyName) voidsetCountryCode(String countryCode) voidsetCreditCardGUID(String creditCardGUID) voidsetCustomerId(String customerId) voidsetCustomerTaxId(String customerTaxId) voidvoidsetExpirationDate(String expirationDate) voidsetExpirationMonth(byte expirationMonth) voidsetExpirationYear(short expirationYear) voidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetMaskedCardNumber(String maskedCardNumber) voidvoidsetPostalCode(String postalCode) voidvoidsetStreetAddress1(String streetAddress1) voidsetStreetAddress2(String streetAddress2) Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class javax.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 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:
IllegalArgumentExceptionJspException
-
setExpirationYear
- Throws:
IllegalArgumentExceptionJspException
-
setExpirationDate
- Throws:
IllegalArgumentExceptionJspException
-
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:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Throws:
JspException
-
doCatch
- Specified by:
doCatchin interfaceTryCatchFinally- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinallyin interfaceTryCatchFinally
-
