Class APIUsageTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.googlemap.APIUsageTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class APIUsageTag extends TagSupport
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:
  • Constructor Details

    • APIUsageTag

      public APIUsageTag()
  • Method Details

    • setVar

      public void setVar(String name)
      Sets the request attribute name.
      Parameters:
      name - the request attribute to store the result in
    • setType

      public void setType(String t)
      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 interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      TagSupport.SKIP_BODY always