Class StatusCodeTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class StatusCodeTag
    extends ResponseContextTag
    Since:
    MicroStrategy Web 8.1.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • 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

      Constructors 
      Constructor Description
      StatusCodeTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ResponseContextTagHelper getHelper()
      Method for retrieving the helper related with the tag.
      void setAttrName​(java.lang.String attrName)
      Specifies an XML attribute name to use when formatting the status code into an XML document.
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, 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
    • Constructor Detail

      • StatusCodeTag

        public StatusCodeTag()
    • Method Detail

      • setAttrName

        public void setAttrName​(java.lang.String attrName)
        Specifies an XML attribute name to use when formatting the status code into an XML document. When specified, it will generate the following:
        attrName="STATUS_CODE"
        In the special case that the attribute name is "HTTP_HEADER" then the status code is set as the HTTP Status Code. In this case, an error message is also set as a HTTP Header (X-MSTR-TaskFailureMsg) as is the error code (X-MSTR-TaskErrorCode).
        Parameters:
        attrName - The XML attribute name to use.