org.restlet.routing.VirtualHost.getHostPort()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(177)

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

VirtualHost.getHostPort介绍

[英]Returns the hostRef host port to match. See the java.util.regex.Pattern class for details on the syntax.
[中]返回要匹配的hostRef主机端口。看看java。util。正则表达式。有关语法的详细信息,请参阅Pattern类。

代码示例

代码示例来源:origin: org.restlet.osgi/org.restlet

@Override
protected void logRoute(org.restlet.routing.Route route) {
  if (getLogger().isLoggable(Level.FINE)) {
    if (route instanceof HostRoute) {
      VirtualHost vhost = ((HostRoute) route).getVirtualHost();
      if (getComponent().getDefaultHost() == vhost) {
        getLogger().fine("Default virtual host selected");
      } else {
        getLogger().fine(
            "Virtual host selected: \"" + vhost.getHostScheme()
                + "\", \"" + vhost.getHostDomain()
                + "\", \"" + vhost.getHostPort() + "\"");
      }
    } else {
      super.logRoute(route);
    }
  }
}

代码示例来源:origin: org.restlet.jee/org.restlet.ext.wadl

for (final VirtualHost vh : component.getHosts()) {
  if (vh.getHostDomain().equals(hostDomain)
      && vh.getHostPort().equals(hostPort)
      && vh.getHostScheme().equals(hostScheme)) {
    host = vh;

代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform

.getHostPort()));
} catch (Exception e) {

代码示例来源:origin: org.restlet.jse/org.restlet.ext.platform

.getHostPort()));
} catch (Exception e) {

代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform

.getHostPort()));
} catch (Exception e) {

代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark

.getHostPort()));
} catch (Exception e) {

代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform

.getHostPort()));
} catch (Exception e) {

代码示例来源:origin: org.restlet.osgi/org.restlet

&& matches(getVirtualHost().getHostPort(), hostPort)
&& matches(getVirtualHost().getHostScheme(), hostScheme)
&& matches(getVirtualHost().getResourceDomain(), resourceDomain)

相关文章