net.thauvin.google.taglibs
Class SearchResult
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.thauvin.google.taglibs.SearchResult
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class SearchResult
- extends javax.servlet.jsp.tagext.BodyTagSupport
A custom tag used to parse and loop through Google search results.
- Since:
- 1.0
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Erik C. Thauvin
- See Also:
- Serialized Form
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 |
int |
doAfterBody()
doAfterBody method. |
int |
doEndTag()
doEndTag method. |
int |
doStartTag()
doStartTag method. |
protected java.lang.String |
getElementProperty(java.lang.String name)
Returns the current search result element specified property. |
void |
release()
Release method. |
protected void |
reset()
Reset the values. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, 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 |
SearchResult
public SearchResult()
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
- doAfterBody method.
- Returns:
- EVAL_BODY_TAG or SKIP_BODY.
- Throws:
javax.servlet.jsp.JspTagException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- doEndTag method.
- Returns:
- EVAL_PAGE.
- Throws:
javax.servlet.jsp.JspTagException
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- doStartTag method.
- Returns:
- EVAL_BODY_TAG.
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Release method.
getElementProperty
protected java.lang.String getElementProperty(java.lang.String name)
- Returns the current search result element specified property.
- Parameters:
name
- The property name.
- Returns:
- The property value.
reset
protected void reset()
- Reset the values.