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; } }
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; }
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; } }
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; } }