net.thauvin.google.taglibs
Class Search

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bynet.thauvin.google.taglibs.KeySupport
              extended bynet.thauvin.google.taglibs.QuerySupport
                  extended bynet.thauvin.google.taglibs.Search
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class Search
extends QuerySupport

A custom tag used to perform Google searches.

Since:
1.0
Version:
$Revision: 1.7 $, $Date: 2003/10/18 01:51:29 $
Author:
Erik C. Thauvin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.thauvin.google.taglibs.KeySupport
key
 
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
 
Constructor Summary
Search()
           
 
Method Summary
 int doEndTag()
          doEndTag method.
 int doStartTag()
          doStartTag method.
 void release()
          Release method.
protected  void reset()
          Reset the values.
 void setCache(java.lang.String cache)
          Sets the cache attribute.
 void setFilter(java.lang.String filter)
          Sets the (related-query) filter attribute.
 void setLr(java.lang.String lr)
          Sets the lr (language restrict) attribute.
 void setMaxResults(java.lang.String maxResults)
          Sets the maximum number of results to be returned.
 void setRestrict(java.lang.String restrict)
          Sets the restrict attribute.
 void setSafeSearch(java.lang.String safeSearch)
          Sets the safeSearch attribute.
 void setSite(java.lang.String site)
          Sets the site attribute.
 void setStart(java.lang.String start)
          Sets the start attribute.
 void setType(java.lang.String type)
          Sets the (file) type attribute.
 
Methods inherited from class net.thauvin.google.taglibs.QuerySupport
getQuery
 
Methods inherited from class net.thauvin.google.taglibs.KeySupport
getKey, setKey
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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
 

Constructor Detail

Search

public Search()
Method Detail

setCache

public final void setCache(java.lang.String cache)
Sets the cache attribute.

Parameters:
cache - The new attribute value.

setFilter

public final void setFilter(java.lang.String filter)
Sets the (related-query) filter attribute.

Parameters:
filter - The new attribute value.

setLr

public final void setLr(java.lang.String lr)
Sets the lr (language restrict) attribute.

Parameters:
lr - The new attribute value.

setMaxResults

public final void setMaxResults(java.lang.String maxResults)
Sets the maximum number of results to be returned.

Parameters:
maxResults - The new attribute value.

setRestrict

public final void setRestrict(java.lang.String restrict)
Sets the restrict attribute.

Parameters:
restrict - The new restrict attribute.

setSafeSearch

public final void setSafeSearch(java.lang.String safeSearch)
Sets the safeSearch attribute.

Parameters:
safeSearch - The new attribute value.

setSite

public final void setSite(java.lang.String site)
Sets the site attribute.

Parameters:
site - The new attribute value.

setStart

public final void setStart(java.lang.String start)
Sets the start attribute.

Parameters:
start - The new attribute value.

setType

public final void setType(java.lang.String type)
Sets the (file) type attribute.

Parameters:
type - The new attribute value.
Since:
1.0.1

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
doEndTag method.

Returns:
EVAL_PAGE
Throws:
javax.servlet.jsp.JspException

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.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class QuerySupport

reset

protected void reset()
Reset the values.

Overrides:
reset in class QuerySupport