com.ptc.windchill.index.indexsearch
Class IndexSearchServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.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

Field Summary
private  ArrayList arrClassList
           
private static ServletConstants servletConstants
           
private static String versionID
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
IndexSearchServlet()
           
 
Method Summary
 void destroy()
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 ArrayList getClassList(String instrClassList)
          returns the class list
 void init(javax.servlet.ServletConfig config)
          Our public init method just calls super.
private  Hashtable prepareQueryPrefs(String queryPrefs)
           
private  String[] prepareQueryVariables(String variables)
           
private  Hashtable prepareWhereClause(String classList, String whereClause, String[] librariesArray, RwareServletHelper rsh, Hashtable queryPrefsTable)
           
private  void printResultSetDetails(Hashtable results, PrintWriter out)
           
private  void printRow(Hashtable row, PrintWriter out)
           
private static String unEscapeQuery(String queryString)
           
 
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
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

servletConstants

private static ServletConstants servletConstants

arrClassList

private ArrayList arrClassList
Constructor Detail

IndexSearchServlet

public IndexSearchServlet()
Method Detail

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: