com.primus.ae.searchclient
Class RequestFactory

java.lang.Object
  extended by com.primus.ae.searchclient.RequestFactory

public class RequestFactory
extends java.lang.Object

Builds request XML for a given ClientRequest


Constructor Summary
RequestFactory()
           
 
Method Summary
static java.lang.String buildRequest(ClientRequest req)
          Deprecated. as of 2007.0
static java.lang.String buildRequest(ClientRequest pRequest, SearchSession pSearchSession)
          Calls SearchEngineRequest.toXML() for you.
static java.lang.String getSearchConstraints(java.lang.String constraints)
          Deprecated. as of 2007.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestFactory

public RequestFactory()
Method Detail

buildRequest

public static java.lang.String buildRequest(ClientRequest req)
                                     throws UnknownRequestTypeException
Deprecated. as of 2007.0

Builds request XML for the passed-in request and session

Parameters:
req - client request
Returns:
XML request suitable for submission to ATG Search
Throws:
UnknownRequestTypeException

getSearchConstraints

public static java.lang.String getSearchConstraints(java.lang.String constraints)
Deprecated. as of 2007.0

Returns the XML representation of Search constraints.

Returns:
a String value of document Sets XML element

buildRequest

public static java.lang.String buildRequest(ClientRequest pRequest,
                                            SearchSession pSearchSession)
                                     throws UnknownRequestTypeException
Calls SearchEngineRequest.toXML() for you. That's all. The preferred approach is to call pRequest.toXml().

Parameters:
pRequest - the request
pSearchSession - ignored
Returns:
command xml
Throws:
UnknownRequestTypeException