com.ptc.windchill.index.indexsearch
Class IndexSearchServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ptc.windchill.index.indexsearch.IndexSearchServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class IndexSearchServlet
- extends javax.servlet.http.HttpServlet
The servlet front end to the Verity IndexLoader program. It's counter
part is the CGI wrapper WTindexCGI.EXE. This servlet gathers and loads
the IndexLoader request headers and parameters before instantiating the
IndexLoaderRequest and IndexLoaderResponse objects which are passed to the
IndexLoader processRequest method.
The response headers and response itself are handled by
the response object.
This class (servlet) will now log to IndexLoader.log if
logs are enabled and wt.indexloader.verbose is set to
true in the wt.properties.
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.http.HttpServlet |
|
Fields inherited from class javax.servlet.GenericServlet |
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
servletConstants
private static ServletConstants servletConstants
arrClassList
private ArrayList arrClassList
IndexSearchServlet
public IndexSearchServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Our public init method just calls super.
- Throws:
javax.servlet.ServletException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Throws:
javax.servlet.ServletException
IOException
destroy
public void destroy()
prepareWhereClause
private Hashtable prepareWhereClause(String classList,
String whereClause,
String[] librariesArray,
RwareServletHelper rsh,
Hashtable queryPrefsTable)
prepareQueryVariables
private String[] prepareQueryVariables(String variables)
prepareQueryPrefs
private Hashtable prepareQueryPrefs(String queryPrefs)
printResultSetDetails
private void printResultSetDetails(Hashtable results,
PrintWriter out)
printRow
private void printRow(Hashtable row,
PrintWriter out)
unEscapeQuery
private static String unEscapeQuery(String queryString)
throws PatternSyntaxException
- Throws:
PatternSyntaxException
getClassList
public ArrayList getClassList(String instrClassList)
- returns the class list
- Parameters:
instrClassList
-
- Returns: