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

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

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

VirtualHost.getHostScheme介绍

[英]Returns the hostRef scheme 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

if (vh.getHostDomain().equals(hostDomain)
    && vh.getHostPort().equals(hostPort)
    && vh.getHostScheme().equals(hostScheme)) {
  host = vh;

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

if (!".*".equals(virtualHost.getHostScheme())) {
  scheme = Protocol.valueOf(virtualHost
      .getHostScheme());

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

if (!".*".equals(virtualHost.getHostScheme())) {
  scheme = Protocol.valueOf(virtualHost
      .getHostScheme());

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

if (!".*".equals(virtualHost.getHostScheme())) {
  scheme = Protocol.valueOf(virtualHost
      .getHostScheme());

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

if (!".*".equals(virtualHost.getHostScheme())) {
  scheme = Protocol.valueOf(virtualHost
      .getHostScheme());

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

if (!".*".equals(virtualHost.getHostScheme())) {
  scheme = Protocol.valueOf(virtualHost
      .getHostScheme());

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

&& matches(getVirtualHost().getHostScheme(), hostScheme)
&& matches(getVirtualHost().getResourceDomain(), resourceDomain)
&& matches(getVirtualHost().getResourcePort(), resourcePort)

相关文章