net.thauvin.google.taglibs
Class KeySupport
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.thauvin.google.taglibs.KeySupport
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- QuerySupport
- public abstract class KeySupport
- extends javax.servlet.jsp.tagext.BodyTagSupport
Implements support for specifying the key used for authorization in the
Google API.
The key can be specified using one the following:
- The
key
attribute.
- The
key
request parameter.
- The
key
context
parameter.
- The
key
application scope
attribute.
- Since:
- 1.0
- Version:
- $Revision: 1.2 $
- Author:
- Erik C. Thauvin
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
key
The key attribute. |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
protected java.lang.String |
getKey()
Returns the key attribute. |
void |
release()
Release method. |
protected void |
reset()
Reset the values. |
void |
setKey(java.lang.String key)
Sets the key attribute. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
key
protected java.lang.String key
- The key attribute.
KeySupport
public KeySupport()
setKey
public final void setKey(java.lang.String key)
- Sets the key attribute.
- Parameters:
key
- The new attribute value.- See Also:
getKey()
release
public void release()
- Release method.
getKey
protected java.lang.String getKey()
- Returns the key attribute.
- Returns:
- The attribute value.
- See Also:
setKey(String)
reset
protected void reset()
- Reset the values.