Package com.newmediaworks.taglib.payment
Class ShippingAddressTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.ShippingAddressTag
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
Provides the shipping details to a
PaymentTag
.- Author:
- New Media Works
- See Also:
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
static Optional
<ShippingAddressTag> getCurrent
(ServletRequest request) static ShippingAddressTag
requireCurrent
(String fromName, ServletRequest request) void
void
setCompanyName
(String companyName) void
setCountryCode
(String countryCode) void
setFirstName
(String firstName) void
setLastName
(String lastName) 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
-
ShippingAddressTag
public ShippingAddressTag()
-
-
Method Details
-
getCurrent
-
requireCurrent
public static ShippingAddressTag requireCurrent(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
setFirstName
- Throws:
JspException
-
setLastName
- Throws:
JspException
-
setCompanyName
- Throws:
JspException
-
setStreetAddress1
- Throws:
JspException
-
setStreetAddress2
- Throws:
JspException
-
setCity
- Throws:
JspException
-
setState
- Throws:
JspException
-
setPostalCode
- Throws:
JspException
-
setCountryCode
- 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
-