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

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

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

VirtualHost.getRoutes介绍

暂无

代码示例

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

/**
 * Stop all applications attached to a virtual host
 * 
 * @param host
 * @throws Exception
 */
private void stopHostApplications(VirtualHost host) throws Exception {
  for (Route route : host.getRoutes()) {
    if (route.getNext().isStarted()) {
      route.getNext().stop();
    }
  }
}

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

Endpoint result = null;
for (Route route : virtualHost.getRoutes()) {
  if (route.getNext() != null) {
    Application app = getNextApplication(route.getNext());

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

Endpoint result = null;
for (Route route : virtualHost.getRoutes()) {
  if (route.getNext() != null) {
    Application app = getNextApplication(route.getNext());

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

Endpoint result = null;
for (Route route : virtualHost.getRoutes()) {
  if (route.getNext() != null) {
    Application app = getNextApplication(route.getNext());

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

Endpoint result = null;
for (Route route : virtualHost.getRoutes()) {
  if (route.getNext() != null) {
    Application app = getNextApplication(route.getNext());

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

Endpoint result = null;
for (Route route : virtualHost.getRoutes()) {
  if (route.getNext() != null) {
    Application app = getNextApplication(route.getNext());

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

for (Route route : host.getRoutes()) {
  Restlet next = route.getNext();

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

boolean addFullServletPath = false;
if (component.getDefaultHost().getRoutes().isEmpty()) {
} else {
  for (final Route route : component.getDefaultHost()
      .getRoutes()) {
    if (route.getTemplate().getPattern() == null) {
      addFullServletPath = true;
  for (final VirtualHost virtualHost : component
      .getHosts()) {
    if (virtualHost.getRoutes().isEmpty()) {
    } else {
      for (final Route route : virtualHost
          .getRoutes()) {
        if (route.getTemplate().getPattern() == null) {
          addFullServletPath = true;
      .getRoutes()) {
    log("[Restlet] Attaching restlet: "
        + route.getNext() + " to URI: "
    for (final Route route : virtualHost.getRoutes()) {
      log("[Restlet] Attaching restlet: "
          + route.getNext() + " to URI: "

相关文章