ParserUtility.validateHostName(String hostName) 方法

定义

Validate if a provided host name is valid using the follow criteria. A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. Contains at least one separator '.'

public static void validateHostName(String hostName)

参数

hostName
String

is the host name to test

例外

IllegalArgumentException

if the provided host name do not fits the criteria

适用于