Class RemoteAddressTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class RemoteAddressTag extends ImageTag
A JSP tag to format IP address information.
Since:
10.2
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • RemoteAddressTag

      public RemoteAddressTag()
      Creates the tag.
  • Method Details

    • setAddr

      public void setAddr(RemoteAddressBean addr)
      Sets the remote address to display.
      Parameters:
      addr - a RemoteAddressBean
    • setInfo

      public void setInfo(IPBlock ib)
      Sets information about the IP address block.
      Parameters:
      ib - the IPBlock
    • setShowFlag

      public void setShowFlag(boolean showFlag)
      Sets whether to show the national flag of the IP block.
      Parameters:
      showFlag - TRUE to display the flag, otherwise FALSE
    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class ImageTag
    • doStartTag

      public int doStartTag()
      Calculates the flag data, if requested.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class ImageTag
      Returns:
      SKIP_BODY always
    • doEndTag

      public int doEndTag() throws JspException
      Displays the address information.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class ImageTag
      Returns:
      EVAL_PAGE always
      Throws:
      JspException - if an error occurs