public boolean isInstanceURL ( String url , InstanceInfo instance ) { String hostName = hostFromUrl ( url ) ; String myInfoComparator = instance . getHostName ( ) ; if ( clientConfig . getTransportConfig ( ) . applicationsResolverUseIp ( ) ) { myInfoComparator = instance . getIPAddr ( ) ; } return hostName != null && hostName . equals ( myInfoComparator ) ; }
Checks if the given service url matches the supplied instance