Class URLArgumentHandler
java.lang.Object
org.apache.geode.modules.session.installer.args.URLArgumentHandler
- All Implemented Interfaces:
ArgumentHandler
Argument handler implementation which accepts file paths or URLs and normalizes the parameters to
URLs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleArgument(Argument arg, String form, String[] parameters) Ensure that the argument is either a file path or a properly formatted URL.
-
Constructor Details
-
URLArgumentHandler
public URLArgumentHandler()
-
-
Method Details
-
handleArgument
Ensure that the argument is either a file path or a properly formatted URL. If it is a file path, convert to a URL. If neither, throws a UsageException.- Specified by:
handleArgumentin interfaceArgumentHandler- Parameters:
arg- argumentform- form usedparameters- parameters supplied- Throws:
UsageException- when file not found or not a workable URL
-