Class RemoteAddressTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.ImageTag
org.deltava.taglib.format.RemoteAddressTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to format IP address information.
- Since:
- 10.2
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.html.ElementTag
_classes, _data, _out
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 -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Displays the address information.int
Calculates the flag data, if requested.void
release()
void
setAddr
(RemoteAddressBean addr) Sets the remote address to display.void
Sets information about the IP address block.void
setShowFlag
(boolean showFlag) Sets whether to show the national flag of the IP block.Methods inherited from class org.deltava.taglib.html.ImageTag
renderHTML, setCaption, setSrc, setX, setY
Methods inherited from class org.deltava.taglib.html.ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setPageContext, setStyle
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
RemoteAddressTag
public RemoteAddressTag()Creates the tag.
-
-
Method Details
-
setAddr
Sets the remote address to display.- Parameters:
addr
- a RemoteAddressBean
-
setInfo
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
-
doStartTag
public int doStartTag()Calculates the flag data, if requested.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classImageTag
- Returns:
- SKIP_BODY always
-
doEndTag
Displays the address information.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classImageTag
- Returns:
- EVAL_PAGE always
- Throws:
JspException
- if an error occurs
-