org.wildfly.extension.undertow.Host.getAllAliases()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.wildfly.extension.undertow.Host.getAllAliases()方法的一些代码示例,展示了Host.getAllAliases()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Host.getAllAliases()方法的具体详情如下:
包路径:org.wildfly.extension.undertow.Host
类名称:Host
方法名:getAllAliases

Host.getAllAliases介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

protected void unregisterHost(Host host) {
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.removeHost(hostName);
    hosts.remove(host);
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(ResponseCodeHandler.HANDLE_404);
  }
}

代码示例来源:origin: wildfly/wildfly

protected void registerHost(final Host host) {
  hosts.add(host);
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.addHost(hostName, host.getRootHandler());
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(host.getRootHandler());
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-mod_cluster-undertow

@Override
public Set<String> getAliases() {
  return this.host.getAllAliases();
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

@Override
public String getHostAlias(String hostname) {
  ServerHostInfo hostInfo = new ServerHostInfo(hostname);
  Host undertowHost = getUndertowHost(hostInfo);
  if (undertowHost!= null && !undertowHost.getAllAliases().isEmpty()) {
    for (String alias : undertowHost.getAllAliases()) {
      if (undertowHost.getAllAliases().size() == 1 || !alias.equals(undertowHost.getName())) {
        return alias;
      }
    }
  }
  return null;
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

@Override
public String getHostAlias(String hostname) {
  ServerHostInfo hostInfo = new ServerHostInfo(hostname);
  Host undertowHost = getUndertowHost(hostInfo);
  if (undertowHost!= null && !undertowHost.getAllAliases().isEmpty()) {
    for (String alias : undertowHost.getAllAliases()) {
      if (undertowHost.getAllAliases().size() == 1 || !alias.equals(undertowHost.getName())) {
        return alias;
      }
    }
  }
  return null;
}

代码示例来源:origin: org.wildfly/wildfly-undertow

protected void unregisterHost(Host host) {
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.removeHost(hostName);
    hosts.remove(host);
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(ResponseCodeHandler.HANDLE_404);
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-undertow

protected void unregisterHost(Host host) {
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.removeHost(hostName);
    hosts.remove(host);
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(ResponseCodeHandler.HANDLE_404);
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-undertow

protected void registerHost(final Host host) {
  hosts.add(host);
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.addHost(hostName, host.getRootHandler());
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(host.getRootHandler());
  }
}

代码示例来源:origin: org.wildfly/wildfly-undertow

protected void registerHost(final Host host) {
  hosts.add(host);
  for (String hostName : host.getAllAliases()) {
    virtualHostHandler.addHost(hostName, host.getRootHandler());
  }
  if (host.getName().equals(getDefaultHost())) {
    virtualHostHandler.setDefaultHandler(host.getRootHandler());
  }
}

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-as8

Set<String> aliases = context.getHostOfDeployment().getAllAliases();

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-as10

Set<String> aliases = context.getHostOfDeployment().getAllAliases();

相关文章