Order the Book

coreservlets
Class SearchSpec

java.lang.Object
  |
  +--coreservlets.SearchSpec

public class SearchSpec
extends Object

Small class that encapsulates how to construct a search string for a particular search engine.

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.


Constructor Summary
SearchSpec(String name, String baseURL, String numResultsSuffix)
           
 
Method Summary
static SearchSpec[] getCommonSpecs()
           
 String getName()
           
 String makeURL(String searchString, String numResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchSpec

public SearchSpec(String name,
                  String baseURL,
                  String numResultsSuffix)
Method Detail

makeURL

public String makeURL(String searchString,
                      String numResults)

getName

public String getName()

getCommonSpecs

public static SearchSpec[] getCommonSpecs()

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive