Package com.newmediaworks.taglib.payment
Class MaskCardNumberTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingBufferedTag
com.newmediaworks.taglib.payment.MaskCardNumberTag
Masks a credit card number by only showing the first and last digits, hiding all the middle digits.
- Author:
- New Media Works
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTag
(BufferResult capturedBody, Writer out) protected void
invoke
(JspFragment body, MediaValidator captureValidator) void
Methods inherited from class com.aoapps.encoding.taglib.EncodingBufferedTag
doTag, getTempFileThreshold, newBufferWriter, newBufferWriter, newBufferWriter, newBufferWriter, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
MaskCardNumberTag
public MaskCardNumberTag()
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in classEncodingBufferedTag
-
getOutputType
- Specified by:
getOutputType
in classEncodingBufferedTag
-
setValue
-
invoke
protected void invoke(JspFragment body, MediaValidator captureValidator) throws JspException, IOException - Overrides:
invoke
in classEncodingBufferedTag
- Throws:
JspException
IOException
-
doTag
- Overrides:
doTag
in classEncodingBufferedTag
- Throws:
JspException
IOException
-