Returns virtual host shovels.

@param vhost Virtual host from where search shovels.
@return Shovels.
167876
public List<ShovelStatus> getShovelsStatus(String vhost) {
    final URI uri = uriWithPath("./shovels/" + encodePathSegment(vhost));
    final ShovelStatus[] result = this.getForObjectReturningNullOn404(uri, ShovelStatus[].class);
    return asListOrNull(result);
  }
1079330
def lookup_server(req)
      @virtual_hosts.find{|s|
        (s[:BindAddress].nil? || req.addr[3] == s[:BindAddress]) &&
        (s[:Port].nil?        || req.port == s[:Port])           &&
        ((s[:ServerName].nil?  || req.host == s[:ServerName]) ||
         (!s[:ServerAlias].nil? && s[:ServerAlias].find{|h| h === req.host}))
      }
    end
427032
private List<CmsResource> getVirtualResourcesForRoot(CmsObject cms) throws CmsException {

        CmsResource resource = createFakeFolder(BASE_PATH);
        return Arrays.asList(resource);
    }
1131163
@NoAuth
    @RequestMapping(value = "/hosts", method = RequestMethod.GET)
    @ResponseBody
    public ValueVo getHosts() {

        ValueVo confItemVo = new ValueVo();
        confItemVo.setStatus(Constants.OK);
        confItemVo.setValue(zooConfig.getZooHosts());

        return confItemVo;
    }
76684
private List<ServerAddress> getServerAddressList(List<String> addressStringList) throws UnknownHostException {

        List<ServerAddress> addressList = new ArrayList<>();

        for (String addressString : addressStringList) {
            addressList.add(new ServerAddress(addressString));
        }
        return addressList;
    }
1245983
public function getVirtualHostsAsArray()
    {

        // prepare the array containing the virtual host configuration
        $virtualHosts = array();

        // iterate hosts
        /** @var \AppserverIo\Appserver\Core\Api\Node\VirtualHostNode $virtualHost */
        foreach ($this->getVirtualHosts() as $virtualHost) {
            // explode the virtual host names
            $virtualHostNames = explode(' ', $virtualHost->getName());

            // Some virtual hosts might have an extensionType to expand their name attribute, check for that
            if ($virtualHost->hasInjector()) {
                $virtualHostNames = array_merge($virtualHostNames, explode(' ', $virtualHost->getInjection()));
            }

            // prepare the virtual hosts
            foreach ($virtualHostNames as $virtualHostName) {
                // set all virtual hosts params per key for faster matching later on
                $virtualHosts[trim($virtualHostName)] = array(
                    'params' => $virtualHost->getParamsAsArray(),
                    'headers' => $virtualHost->getHeadersAsArray(),
                    'rewriteMaps' => $virtualHost->getRewriteMapsAsArray(),
                    'rewrites' => $virtualHost->getRewritesAsArray(),
                    'environmentVariables' => $virtualHost->getEnvironmentVariablesAsArray(),
                    'accesses' => $virtualHost->getAccessesAsArray(),
                    'locations' => $virtualHost->getLocationsAsArray(),
                    'authentications' => $virtualHost->getAuthenticationsAsArray(),
                    'analytics' => $virtualHost->getAnalyticsAsArray()
                );
            }
        }

        // return the virtual host configuration
        return $virtualHosts;
    }
529938
def vhost_exists(name, runas=None):
    '''
    
    '''
    if runas is None and not salt.utils.platform.is_windows():
        runas = salt.utils.user.get_user()
    return name in list_vhosts(runas=runas)
470325
def get_vhost_names(self):
        
        vhosts = self.get_all_vhosts()
        vhost_names = [i['name'] for i in vhosts]
        return vhost_names
899220
function vhost(hostname, router) {
  return function (req, res, next) {
    if (req.hostname === hostname) {
      router(req, res, next);
    } else {
      next();
    }
  };
}
1313531
@Nullable @Override
    public synchronized Host getHost() {
        for (Integer priority : priorities) {
            IteratingHostProvider iteratingHostProvider = hosts.get(priority);
            if (iteratingHostProvider!=null) { //this could only be null if we had a synchronization problem or a bug.
                Host host = iteratingHostProvider.getHost();
                if (host!=null) return host;
            }
        }
        return null;
    }
801724
public String determineVirtualHost() {
		if (CollectionUtils.isEmpty(this.parsedAddresses)) {
			return getVirtualHost();
		}
		Address address = this.parsedAddresses.get(0);
		return (address.virtualHost != null) ? address.virtualHost : getVirtualHost();
	}
1267543
function vhostof (req, regexp) {
  var host = req.headers.host
  var hostname = hostnameof(req)

  if (!hostname) {
    return
  }

  var match = regexp.exec(hostname)

  if (!match) {
    return
  }

  var obj = Object.create(null)

  obj.host = host
  obj.hostname = hostname
  obj.length = match.length - 1

  for (var i = 1; i < match.length; i++) {
    obj[i - 1] = match[i]
  }

  return obj
}
621301
def get_vhosts(ip, first=1, no_cache=False):
    

    if not no_cache:
        homedir = pwd.getpwuid(os.getuid()).pw_dir
        requests_cache.install_cache(homedir + '/.habu_requests_cache')

    url = "http://www.bing.com/search?q=ip:{ip}&first={first}".format(ip=ip, first=first)

    response = requests.get(url)

    soup = BeautifulSoup(response.text, "html.parser")

    vhosts = set()

    for h2 in soup.find_all('h2'):
        for link in h2.find_all('a'):
            href = link.get('href')

            if href.startswith('http://') or href.startswith('https://'):
                vhost = href.split('/')[2]
                vhosts.add(vhost)

    return list(vhosts)
520873
def get(self, virtual_host):
        
        virtual_host = quote(virtual_host, '')
        return self.http_client.get(API_VIRTUAL_HOST % virtual_host)
420999
public Collection<String> getIgnoreHosts() {
        if (isIgnoreLocalhost()) {
            return new ImmutableSet.Builder<String>()
                    .addAll(ignoreHosts)
                    .addAll(Network.getLocalAddresses())
                    .build();
        } else {
            return ignoreHosts;
        }
    }
1145147
def get_vhost(self, name):
        
        return self._api_get('/api/vhosts/{0}'.format(
            urllib.parse.quote_plus(name)
        ))
637897
@Override
    public Set<Long> getHostTrackingPoints(Long bucketId) {
        if (!zeroAllocations.containsKey(bucketId)) {
            return new HashSet<>();
        }
        return zeroAllocations.get(bucketId).keySet();
    }