Package com.newmediaworks.taglib.payment
Class UseProcessorTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.UseProcessorTag
- All Implemented Interfaces:
Serializable
,BodyTag
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,TryCatchFinally
Selects the processor that will be used for subsequent transactions.
- 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
addParameter
(String name, String value) Adds a parameter.void
int
doEndTag()
Sets the processor at end tag because connector name and parameters are set in nested tags.void
int
static Optional
<UseProcessorTag> getCurrent
(ServletRequest request) static UseProcessorTag
requireCurrent
(String fromName, ServletRequest request) void
setConnectorName
(String connectorName) Sets the connector name.void
setDynamicAttribute
(String uri, String localName, Object value) 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
-
UseProcessorTag
public UseProcessorTag()
-
-
Method Details
-
getCurrent
-
requireCurrent
public static UseProcessorTag requireCurrent(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
setConnectorName
Sets the connector name. -
addParameter
Adds a parameter.- Throws:
IllegalStateException
- if name already set.
-
setDynamicAttribute
- Specified by:
setDynamicAttribute
in interfaceDynamicAttributes
- Throws:
JspException
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Throws:
JspException
-
doEndTag
Sets the processor at end tag because connector name and parameters are set in 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
-