com.raritantechnologies.quickstart.userInterface
Class DocumentContentHandlerValidator
java.lang.Object
com.raritantechnologies.quickstart.userInterface.DocumentContentHandlerValidator
- All Implemented Interfaces:
- IConfigurable, IURLValidator
- public class DocumentContentHandlerValidator
- extends java.lang.Object
- implements IURLValidator
Validates a URL to an RTI IDocumentContentHandler. Can
be used as a '404' checker.
XML Configuration Template:
<URLValidator class="com.raritantechnologies.quickstart.userInterface.DocumentContentHandlerValidator" />
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
boolean |
validateURL(ILoginInfo userInfo,
java.lang.String theURL)
returns true if the URL represented by the URL parameter exists and
either no user is passed or the user has access to the URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentContentHandlerValidator
public DocumentContentHandlerValidator()
validateURL
public boolean validateURL(ILoginInfo userInfo,
java.lang.String theURL)
- Description copied from interface:
IURLValidator
- returns true if the URL represented by the URL parameter exists and
either no user is passed or the user has access to the URL.
- Specified by:
validateURL in interface IURLValidator
- Parameters:
userInfo - ILoginInfo object representing user credentials or null
if no user authentication is required.theURL - The URL to validate.
- Returns:
- true if URL successfully validated, false otherwise.
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 IURLValidator