Java Doc for SearchResultBase.java in  » ERP-CRM-Financial » sakai » edu » indiana » lib » twinpeaks » search » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » edu.indiana.lib.twinpeaks.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.indiana.lib.twinpeaks.search.SearchResultBase

All known Subclasses:   edu.indiana.lib.twinpeaks.search.singlesearch.web2.Web2Response,
SearchResultBase
abstract public class SearchResultBase implements SearchResultInterface(Code)
Result rendering - base class and helpers


Field Summary
protected  String_baseUrl
    
protected  String_database
    
protected  String_searchQuery
    
protected  byte_searchResponseBytes
    
protected  Document_searchResponseDocument
    
protected  String_searchResponseString
    
protected  String_sessionId
    

Constructor Summary
public  SearchResultBase()
    

Method Summary
public  voidaddItem(MatchItem item)
    
public  booleancanPaginate()
    
public  booleanexpectedNodeCount(NodeList nodeList, int expected)
    
public  StringgetFullUrl(String baseUrl, String urlFragment)
    
public  StringgetFullUrl(String urlFragment)
    
public  StringgetImageAttribute(Element parent, String name)
    
public  intgetMatchCount()
    
public  StringgetNextPreviewPage()
    
public  StringgetPreviousPreviewPage()
    
public  StringgetQuery()
    
public  DocumentgetSearchResponseDocument()
    
public  StringgetSearchResponseString()
    
public  intgetSearchStart()
    
public  voidinitialize(QueryBase query)
    
public  Iteratoriterator()
    
protected  DocumentparseResponse()
     Parse the search engine response as HTML.
public  StringprependProxy(String url, String proxy)
    
public  voidsaveBaseUrl(String url)
    
public  voidsetNextPreviewPage(String reference)
    
public  voidsetPreviousPreviewPage(String reference)
    
public  voidsetSearchStart(int start)
    
public  voidsetSearchStart(String start)
    
public  MatchItem[]toArray()
    

Field Detail
_baseUrl
protected String _baseUrl(Code)



_database
protected String _database(Code)



_searchQuery
protected String _searchQuery(Code)



_searchResponseBytes
protected byte _searchResponseBytes(Code)



_searchResponseDocument
protected Document _searchResponseDocument(Code)



_searchResponseString
protected String _searchResponseString(Code)



_sessionId
protected String _sessionId(Code)




Constructor Detail
SearchResultBase
public SearchResultBase()(Code)
Constructor




Method Detail
addItem
public void addItem(MatchItem item)(Code)
Add a MatchItem object
Parameters:
  item - MatchItem to add



canPaginate
public boolean canPaginate()(Code)
Can this display be paginated (next/previous pages for display)? true if so



expectedNodeCount
public boolean expectedNodeCount(NodeList nodeList, int expected)(Code)
Verify we have the expected number of Elements in a Node list
Parameters:
  nodeList - List of collected Elements
Parameters:
  expected - Number of Elements we expect to see true If we have the expected number Elements



getFullUrl
public String getFullUrl(String baseUrl, String urlFragment)(Code)
Form a full URL (protocol, server, arguments) from a base URL and provided parameters
Parameters:
  baseUrl - The base (or template) URL
Parameters:
  urlFragment - The (possibly) relative URL to be combined with the base A full URL (as a String)



getFullUrl
public String getFullUrl(String urlFragment)(Code)
Form a full URL (protocol, server, arguments) from a provided URL and a previously provided base URL
Parameters:
  urlFragment - The (possibly) relative URL to be combined with the base A full URL (as a String)



getImageAttribute
public String getImageAttribute(Element parent, String name)(Code)
Locate select attribute of the first matching image
Parameters:
  parent - Parent element (look here for IMG tag)
Parameters:
  name - Attribute name (src, alt, etc) Image name value (null if none)



getMatchCount
public int getMatchCount()(Code)
Return the count of matching items returned Item count



getNextPreviewPage
public String getNextPreviewPage()(Code)
Fetch the "next preview page" reference (used to paginate results null if none) Next page reference



getPreviousPreviewPage
public String getPreviousPreviewPage()(Code)
Fetch the "previous preview page" reference (used to paginate results, null if none) Previous page reference



getQuery
public String getQuery()(Code)
Fetch the original query text Search string



getSearchResponseDocument
public Document getSearchResponseDocument()(Code)
Return search results as a Document Result Document



getSearchResponseString
public String getSearchResponseString()(Code)
Return search results as a String Result Document



getSearchStart
public int getSearchStart()(Code)
Return the starting item number for this search (one based) Starting item number



initialize
public void initialize(QueryBase query)(Code)
Save various attributes of the general search request
Parameters:
  query - The QueryBase extension that sent the search request



iterator
public Iterator iterator()(Code)
Get an iterator to the result list SearchResult Iterator



parseResponse
protected Document parseResponse() throws SearchException(Code)
Parse the search engine response as HTML. See initialize() (override as reqired) Response as a DOM Document



prependProxy
public String prependProxy(String url, String proxy)(Code)
Prepend proxy string (if not already present)
Parameters:
  url - Target URL
Parameters:
  proxy - Proxy specification (Possibly) updated URL string



saveBaseUrl
public void saveBaseUrl(String url)(Code)
Save the request URL base (the server portion only)
Parameters:
  url - Request URL (with or without parameters)



setNextPreviewPage
public void setNextPreviewPage(String reference)(Code)
Set the "next preview page" reference
Parameters:
  reference - Next page reference



setPreviousPreviewPage
public void setPreviousPreviewPage(String reference)(Code)
Set the "previous preview page" reference
Parameters:
  reference - Previous page reference



setSearchStart
public void setSearchStart(int start)(Code)
Set the starting item number for this search (one based)
Parameters:
  start - Starting item number



setSearchStart
public void setSearchStart(String start)(Code)
Set the starting item number for this search (one based)
Parameters:
  start - Starting item number



toArray
public MatchItem[] toArray()(Code)
Return the MatchItem list as a simple array MatchItem array



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.