public static boolean validateBindAddress(String bindAddress){
  if (bindAddress == null || bindAddress.length() == 0)   return true;
  if (InetAddressUtil.validateHost(bindAddress) == null)   return false;
  return true;
}

public static boolean validateBindAddress ( String bindAddress ) { if ( bindAddress == null || bindAddress . length ( ) == 0 ) return true ; if ( InetAddressUtil . validateHost ( bindAddress ) == null ) return false ; return true ; }
validates the bind address . the address may be a host name or ip address , but it must not be empty and must be usable for creating an inetaddress . cannot have a leading ' / ' ( which inetaddress . tostring ( ) produces ) .
