本文整理了Java中org.apache.camel.util.ResourceHelper.isHttpUri
方法的一些代码示例,展示了ResourceHelper.isHttpUri
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceHelper.isHttpUri
方法的具体详情如下:
包路径:org.apache.camel.util.ResourceHelper
类名称: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;
}
}
内容来源于网络,如有侵权,请联系作者删除!