Class APIUsageTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.APIUsageTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to store the number of times the Google Maps API has been requested since the web application was started.
- Since:
- 2.2
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionint
Saves the Google Maps usage count in the request.void
Sets the Google Map API type to request usage for.void
Sets the request attribute name.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
APIUsageTag
public APIUsageTag()
-
-
Method Details
-
setVar
Sets the request attribute name.- Parameters:
name
- the request attribute to store the result in
-
setType
Sets the Google Map API type to request usage for.- Parameters:
t
- the Google Maps API type
-
doStartTag
public int doStartTag()Saves the Google Maps usage count in the request.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Returns:
- TagSupport.SKIP_BODY always
-