org.rhq.enterprise.communications.util.prefs
Class UrlSetupValidityChecker
java.lang.Object
org.rhq.enterprise.communications.util.prefs.UrlSetupValidityChecker
- All Implemented Interfaces:
- SetupValidityChecker
public class UrlSetupValidityChecker
- extends Object
- implements SetupValidityChecker
A setup validity checker that validates that the new value is a valid URL.
- Author:
- John Mazzitelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlSetupValidityChecker
public UrlSetupValidityChecker()
checkValidity
public boolean checkValidity(String pref_name,
String value_to_check,
Preferences preferences,
PrintWriter out)
- Checks to make sure the
value_to_check is a valid URL string.
- Specified by:
checkValidity in interface SetupValidityChecker
- Parameters:
pref_name - the name of the preference being checkedvalue_to_check - the value to checkpreferences - the full set of preferencesout - an output stream this instruction can use to print out any error messages that it deems
appropriate
- Returns:
true if value_to_check is valid; false otherwise- See Also:
SetupValidityChecker.checkValidity(String, String, java.util.prefs.Preferences, PrintWriter)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.