org.rhq.enterprise.communications.util.prefs
Class RemotingLocatorUriParamsValidityChecker

java.lang.Object
  extended by org.rhq.enterprise.communications.util.prefs.RemotingLocatorUriParamsValidityChecker
All Implemented Interfaces:
SetupValidityChecker

public class RemotingLocatorUriParamsValidityChecker
extends Object
implements SetupValidityChecker

Checks the validity of a JBoss/Remoting InvokerLocator URI parameters. This means the string is really a URI query string (e.g. name1=value1&foo&hello=world).

Author:
John Mazzitelli

Constructor Summary
RemotingLocatorUriParamsValidityChecker()
           
 
Method Summary
 boolean checkValidity(String pref_name, String value_to_check, Preferences preferences, PrintWriter out)
          This will check the validity of the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotingLocatorUriParamsValidityChecker

public RemotingLocatorUriParamsValidityChecker()
Method Detail

checkValidity

public boolean checkValidity(String pref_name,
                             String value_to_check,
                             Preferences preferences,
                             PrintWriter out)
Description copied from interface: SetupValidityChecker
This will check the validity of the given value. The name of the preference to be checked is also provided, though implementations probably will not need that in most cases. In addition, the full set of preferences currently set are also passed in, in case the validity checker needs to examine other preference values to determine the validity of this value to check.

Specified by:
checkValidity in interface SetupValidityChecker
Parameters:
pref_name - the name of the preference being checked
value_to_check - the value to check
preferences - the full set of preferences
out - 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, Preferences, PrintWriter)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.