com.raritantechnologies.quickstart.taglibrary.request
Class RequestComparator
java.lang.Object
com.raritantechnologies.quickstart.taglibrary.request.RequestComparator
- All Implemented Interfaces:
- IConfigurable
- public class RequestComparator
- extends java.lang.Object
- implements IConfigurable
Enables an HTTP request to be compared as a whole.
XML Configuration Template:
This format is used to provide a comparator for a single request parameter:
<RequestComparator param="[ parameter that will be compared ]"
class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >
</RequestComparator>
Use this format if multiple parameters must be compared using boolean logic:
<RequestComparator class="com.raritantechnologies.utils.comparators.MapComparator"
isAnd="[ true(default)|false ]" >
<!-- One or more Comparator tags -->
<Comparator param="[ request parameter ]" class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >
</Comparator>
</RequestComparator>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestComparator
public RequestComparator()
RequestComparator
public RequestComparator(java.lang.String requestParam,
IComparator comparator)
matchesRequest
public boolean matchesRequest(RaritanPageContext pageContext)
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable