Class URLArgument


  • public class URLArgument
    extends InputArgument<java.lang.String,​java.net.URL>
    An argument that only accepts String input that is a valid URL (can be parsed to URL)
    • Constructor Detail

      • URLArgument

        public URLArgument​(java.lang.String name,
                           java.lang.String description)
    • Method Detail

      • whenInvalidUrl

        public ArgumentValidation<java.lang.String> whenInvalidUrl()
        Returns the validation to be able to set the response that will be sent when the input is not valid for the regex
        Returns:
        the existing validation