com.raritantechnologies.HTML
Interface IURLValidator

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
DocumentContentHandlerValidator

public interface IURLValidator
extends IConfigurable

Interface for objects that can validate a URL and/or a user's access to a URL.


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 user, 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.
 

Method Detail

validateURL

public boolean validateURL(ILoginInfo user,
                           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.

Parameters:
user - 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 IConfigurable