|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.ultrasearch.query.DisplayUtil
Class DisplayUtil provides methods to display table and file data source contents.
| Constructor Summary | |
DisplayUtil()Default constructor |
|
DisplayUtil(boolean connClosed)Deprecated. |
|
| Method Summary | |
void |
displayCachedDocument(int doc_id, Query query, java.lang.String startTag, java.lang.String endTag, java.lang.String prevTag, java.lang.String nextTag, java.io.Writer out)Display the cached document with highlighting. |
void |
displayFileUrl(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)Call this method to display the contents of a file data source document. |
void |
displayTableUrl(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)Call this method to display the contents of a table data source (database row cell). |
void |
setInstance(Instance inst)Sets the Instance object used by the class to create database connections to the Ultra Search instance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DisplayUtil()
public DisplayUtil(boolean connClosed)
| Method Detail |
public void setInstance(Instance inst)
inst - The instance object
public void displayTableUrl(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
java.sql.SQLException
This method makes a database call which returns the contents the database row cell. The table may reside on a separate database which must be accessible by the Ultra Search database via a database link.
request - The incoming Servlet request object containing all request data.response - The outgoing Servlet response object whose PrintWriter this method will print text to.java.io.IOException - when an error occurs during printing of text to the response object's PrintWriter.java.sql.SQLException - when a database error occurs.
public void displayFileUrl(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
java.sql.SQLException
This method makes a database call which returns the contents of the file. Therefore, the file must be accessible by the database server.
request - The incoming Servlet request object containing all request data.response - The outgoing Servlet response object whose PrintWriter this method will print text to.java.io.IOException - when an error occurs during printing of text to the response object's PrintWriter.java.sql.SQLException - when a database error occurs.
public void displayCachedDocument(int doc_id,
Query query,
java.lang.String startTag,
java.lang.String endTag,
java.lang.String prevTag,
java.lang.String nextTag,
java.io.Writer out)
throws java.io.FileNotFoundException,
java.lang.SecurityException,
java.io.IOException,
java.sql.SQLException
doc_id - the document idquery - the query that returned this documentstartTag - char(s) inserted to indicate start of highlighted termendTag - char(s) inserted to indicate end of highlighted termprevTag - markup to navigate to the previous highlightnextTag - markup to navigate to the next highlightout - the writer to output to.java.io.FileNotFoundException - when the cache file is not availablejava.lang.SecurityException - if the file is protected by access controljava.io.IOException - if encountered exception writing to out.java.sql.SQLException
|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||