本文整理了Java中org.restlet.routing.VirtualHost.getHostDomain()
方法的一些代码示例,展示了VirtualHost.getHostDomain()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VirtualHost.getHostDomain()
方法的具体详情如下:
包路径:org.restlet.routing.VirtualHost
类名称:VirtualHost
方法名:getHostDomain
[英]Returns the hostRef host domain to match. See the java.util.regex.Pattern class for details on the syntax.
[中]返回要匹配的hostRef主机域。看看java。util。正则表达式。有关语法的详细信息,请参阅Pattern类。
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform
&& application.getClass().equals(app.getClass())) {
String hostDomain = null;
if (virtualHost.getHostDomain() != null
&& !".*".equals(virtualHost.getHostDomain())) {
if (virtualHost.getHostDomain().contains("|")) {
hostDomain = virtualHost.getHostDomain().split("|")[0];
} else {
hostDomain = virtualHost.getHostDomain();
代码示例来源: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.jse/org.restlet.ext.platform
&& application.getClass().equals(app.getClass())) {
String hostDomain = null;
if (virtualHost.getHostDomain() != null
&& !".*".equals(virtualHost.getHostDomain())) {
if (virtualHost.getHostDomain().contains("|")) {
hostDomain = virtualHost.getHostDomain().split("|")[0];
} else {
hostDomain = virtualHost.getHostDomain();
代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform
&& application.getClass().equals(app.getClass())) {
String hostDomain = null;
if (virtualHost.getHostDomain() != null
&& !".*".equals(virtualHost.getHostDomain())) {
if (virtualHost.getHostDomain().contains("|")) {
hostDomain = virtualHost.getHostDomain().split("|")[0];
} else {
hostDomain = virtualHost.getHostDomain();
代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark
&& application.getClass().equals(app.getClass())) {
String hostDomain = null;
if (virtualHost.getHostDomain() != null
&& !".*".equals(virtualHost.getHostDomain())) {
if (virtualHost.getHostDomain().contains("|")) {
hostDomain = virtualHost.getHostDomain().split("|")[0];
} else {
hostDomain = virtualHost.getHostDomain();
代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform
&& application.getClass().equals(app.getClass())) {
String hostDomain = null;
if (virtualHost.getHostDomain() != null
&& !".*".equals(virtualHost.getHostDomain())) {
if (virtualHost.getHostDomain().contains("|")) {
hostDomain = virtualHost.getHostDomain().split("|")[0];
} else {
hostDomain = virtualHost.getHostDomain();
代码示例来源:origin: org.restlet.jee/org.restlet.ext.wadl
if (vh.getHostDomain().equals(hostDomain)
&& vh.getHostPort().equals(hostPort)
&& vh.getHostScheme().equals(hostScheme)) {
代码示例来源:origin: org.restlet.osgi/org.restlet
if (matches(getVirtualHost().getHostDomain(), hostDomain)
&& matches(getVirtualHost().getHostPort(), hostPort)
&& matches(getVirtualHost().getHostScheme(), hostScheme)
内容来源于网络,如有侵权,请联系作者删除!