Package com.newmediaworks.taglib.payment
Class UseProcessorTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.UseProcessorTag
- All Implemented Interfaces:
BodyTag,DynamicAttributes,IterationTag,JspTag,Tag,TryCatchFinally,Serializable
Selects the processor that will be used for subsequent transactions.
- Author:
- New Media Works
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) Adds a parameter.voidintdoEndTag()Sets the processor at end tag because connector name and parameters are set in nested tags.voidintstatic Optional<UseProcessorTag> getCurrent(ServletRequest request) static UseProcessorTagrequireCurrent(String fromName, ServletRequest request) voidsetConnectorName(String connectorName) Sets the connector name.voidsetDynamicAttribute(String uri, String localName, Object value) Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class jakarta.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 jakarta.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:
setDynamicAttributein interfaceDynamicAttributes- Throws:
JspException
-
doStartTag
- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classBodyTagSupport- Throws:
JspException
-
doEndTag
Sets the processor at end tag because connector name and parameters are set in nested tags.- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classBodyTagSupport- Throws:
JspException
-
doCatch
- Specified by:
doCatchin interfaceTryCatchFinally- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinallyin interfaceTryCatchFinally
-
