本文整理了Java中io.apiman.gateway.engine.beans.Api.setEndpoint()
方法的一些代码示例,展示了Api.setEndpoint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Api.setEndpoint()
方法的具体详情如下:
包路径:io.apiman.gateway.engine.beans.Api
类名称:Api
方法名:setEndpoint
暂无
代码示例来源:origin: apiman/apiman
/**
* Response API property replacements
*/
protected void resolvePropertyReplacements(Api api) {
if (api == null) {
return;
}
String endpoint = api.getEndpoint();
endpoint = resolveProperties(endpoint);
api.setEndpoint(endpoint);
Map<String, String> properties = api.getEndpointProperties();
for (Entry<String, String> entry : properties.entrySet()) {
String value = entry.getValue();
value = resolveProperties(value);
entry.setValue(value);
}
resolvePropertyReplacements(api.getApiPolicies());
}
代码示例来源:origin: apiman/apiman
api.setEndpoint(backEndApi.getName());
api.setEndpointType("TEST");
api.setOrganizationId(orgId);
代码示例来源:origin: apiman/apiman
private void processData() {
if (configs.size() == 0) {
log.warn("File loaded into registry was empty. No entities created.");
return;
}
try {
// Naive version initially.
for (Auth3ScaleBean bean : configs) {
// Reflects the remote data structure.
BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig();
Api api = new Api();
api.setApiId(config.getSystemName());
api.setOrganizationId(defaultOrgName);
api.setEndpoint(config.getProxy().getApiBackend());
api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale
api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale
api.setParsePayload(false); // can let user override this?
api.setPublicAPI(true); // is there an equivalent of this?
api.setVersion(defaultVersion); // don't think this is relevant anymore
setPolicies(api, bean);
log.debug("Processing: {0}", config);
log.debug("Creating API: {0}", api);
apis.add(api);
}
dataProcessed = true;
checkQueue();
} catch (DecodeException e) {
failAll(e);
}
}
代码示例来源:origin: apiman/apiman
gatewayApi.setEndpoint(versionBean.getEndpoint());
gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
if (versionBean.getEndpointContentType() != null) {
代码示例来源:origin: apiman/apiman
gatewayApi.setEndpoint(versionBean.getEndpoint());
gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
gatewayApi.setEndpointProperties(versionBean.getEndpointProperties());
代码示例来源:origin: io.apiman/apiman-manager-api-rest-impl
gatewayApi.setEndpoint(versionBean.getEndpoint());
gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
if (versionBean.getEndpointContentType() != null) {
代码示例来源:origin: io.apiman/apiman-gateway-engine-3scale
private void processData() {
if (configs.size() == 0) {
log.warn("File loaded into registry was empty. No entities created.");
return;
}
try {
// Naive version initially.
for (Auth3ScaleBean bean : configs) {
// Reflects the remote data structure.
BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig();
Api api = new Api();
api.setApiId(config.getSystemName());
api.setOrganizationId(defaultOrgName);
api.setEndpoint(config.getProxy().getApiBackend());
api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale
api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale
api.setParsePayload(false); // can let user override this?
api.setPublicAPI(true); // is there an equivalent of this?
api.setVersion(defaultVersion); // don't think this is relevant anymore
setPolicies(api, bean);
log.debug("Processing: {0}", config);
log.debug("Creating API: {0}", api);
apis.add(api);
}
dataProcessed = true;
checkQueue();
} catch (DecodeException e) {
failAll(e);
}
}
代码示例来源:origin: io.apiman/apiman-test-policies
api.setEndpoint(backEndApi.getName());
api.setEndpointType("TEST");
api.setOrganizationId(orgId);
代码示例来源:origin: io.apiman/apiman-gateway-engine-core
/**
* Response API property replacements
*/
protected void resolvePropertyReplacements(Api api) {
if (api == null) {
return;
}
String endpoint = api.getEndpoint();
endpoint = resolveProperties(endpoint);
api.setEndpoint(endpoint);
Map<String, String> properties = api.getEndpointProperties();
for (Entry<String, String> entry : properties.entrySet()) {
String value = entry.getValue();
value = resolveProperties(value);
entry.setValue(value);
}
resolvePropertyReplacements(api.getApiPolicies());
}
内容来源于网络,如有侵权,请联系作者删除!