|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.bookfinder.request.query.SimulatedKeywordQuery
public final class SimulatedKeywordQuery
An implementation of XMLQuery
that simulates access a keyword
request to the Amazon.com web services. It uses a prebuilt XML files from
local resources.
Method Summary | |
---|---|
SearchResult |
executeQuery()
Executes this XML query and returns the SearchResult object
generated by the query. |
protected SearchResult |
executeQuery(int pageNo)
Executes this XML query using the specified page number and returns the SearchResult object generated by the query. |
protected String |
getOperation()
Returns the query's search code, as used in the query URL, for example: 'KeywordSearch'. |
protected URL |
getQueryURL(int page)
Computes and returns the URL used to execute the query for the specified page no. |
protected String |
getResponseGroup()
|
static XMLQuery |
getSampleQuery()
|
String |
getSearchData()
Returns the query's search data, for example: 'gui', or 'arno schmidt'. |
protected String |
getSearchIndex()
|
String |
getSearchType()
Returns the query's search type, for example: 'author', 'key', or ISBN. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static XMLQuery getSampleQuery()
public String getSearchType()
getSearchType
in interface XMLQuery
protected String getOperation()
protected URL getQueryURL(int page)
public String toString()
public SearchResult executeQuery() throws IOException, org.jdom.JDOMException
SearchResult
object
generated by the query.
executeQuery
in interface XMLQuery
IOException
org.jdom.JDOMException
public String getSearchData()
getSearchData
in interface XMLQuery
protected SearchResult executeQuery(int pageNo) throws IOException, org.jdom.JDOMException
SearchResult
object generated by the query.
IOException
org.jdom.JDOMException
protected String getResponseGroup()
protected String getSearchIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |