org.apache.camel.util.ResourceHelper.isHttpUri()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(67)

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

ResourceHelper.isHttpUri介绍

暂无

代码示例

代码示例来源:origin: org.apache.camel/camel-stringtemplate

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
    StringTemplateEndpoint answer = new StringTemplateEndpoint(uri, this, remaining);
    setProperties(answer, parameters);

    // if its a http resource then append any remaining parameters and update the resource uri
    if (ResourceHelper.isHttpUri(remaining)) {
      remaining = ResourceHelper.appendParameters(remaining, parameters);
      answer.setResourceUri(remaining);
    }

    return answer;
  }
}

代码示例来源:origin: org.apache.camel/camel-mvel

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
  boolean cache = getAndRemoveParameter(parameters, "contentCache", Boolean.class, Boolean.TRUE);
  MvelEndpoint answer = new MvelEndpoint(uri, this, remaining);
  setProperties(answer, parameters);
  answer.setContentCache(cache);
  // if its a http resource then append any remaining parameters and update the resource uri
  if (ResourceHelper.isHttpUri(remaining)) {
    remaining = ResourceHelper.appendParameters(remaining, parameters);
    answer.setResourceUri(remaining);
  }
  return answer;
}

代码示例来源:origin: org.apache.camel/camel-velocity

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
    boolean cache = getAndRemoveParameter(parameters, "contentCache", Boolean.class, Boolean.TRUE);

    VelocityEndpoint answer = new VelocityEndpoint(uri, this, remaining);
    setProperties(answer, parameters);
    answer.setContentCache(cache);
    answer.setVelocityEngine(velocityEngine);

    // if its a http resource then append any remaining parameters and update the resource uri
    if (ResourceHelper.isHttpUri(remaining)) {
      remaining = ResourceHelper.appendParameters(remaining, parameters);
      answer.setResourceUri(remaining);
    }

    return answer;
  }
}

代码示例来源:origin: io.atlasmap/camel-atlasmap

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
    boolean cache = getAndRemoveParameter(parameters, "contentCache", Boolean.class, Boolean.TRUE);
    String sourceMapName = getAndRemoveParameter(parameters, "sourceMapName", String.class);
    String targetMapName = getAndRemoveParameter(parameters, "targetMapName", String.class);

    AtlasEndpoint endpoint = new AtlasEndpoint(uri, this, remaining);
    setProperties(endpoint, parameters);
    endpoint.setContentCache(cache);
    endpoint.setSourceMapName(sourceMapName);
    endpoint.setTargetMapName(targetMapName);
    endpoint.setAtlasContextFactory(getAtlasContextFactory());

    // if its a http resource then append any remaining parameters and update the
    // resource uri
    if (ResourceHelper.isHttpUri(remaining)) {
      String remainingAndParameters = ResourceHelper.appendParameters(remaining, parameters);
      endpoint.setResourceUri(remainingAndParameters);
    }

    return endpoint;
  }
}

相关文章