VMware GemFire Java API Reference
Class URLArgumentHandler
- java.lang.Object
-
- org.apache.geode.modules.session.installer.args.URLArgumentHandler
-
- All Implemented Interfaces:
ArgumentHandler
public class URLArgumentHandler extends Object implements ArgumentHandler
Argument handler implementation which accepts file paths or URLs and normalizes the parameters to URLs.
-
-
Constructor Summary
Constructors Constructor Description URLArgumentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleArgument(Argument arg, String form, String[] parameters)Ensure that the argument is either a file path or a properly formatted URL.
-
-
-
Method Detail
-
handleArgument
public void handleArgument(Argument arg, String form, String[] parameters) throws UsageException
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
-
-