io.apiman.gateway.engine.beans.Api.setEndpointType()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(213)

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

Api.setEndpointType介绍

暂无

代码示例

代码示例来源:origin: apiman/apiman

  1. api.setEndpointType("TEST");
  2. api.setOrganizationId(orgId);
  3. api.setApiId(apiId);

代码示例来源:origin: io.apiman/apiman-test-policies

  1. api.setEndpointType("TEST");
  2. api.setOrganizationId(orgId);
  3. api.setApiId(apiId);

代码示例来源:origin: apiman/apiman

  1. private void processData() {
  2. if (configs.size() == 0) {
  3. log.warn("File loaded into registry was empty. No entities created.");
  4. return;
  5. }
  6. try {
  7. // Naive version initially.
  8. for (Auth3ScaleBean bean : configs) {
  9. // Reflects the remote data structure.
  10. BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig();
  11. Api api = new Api();
  12. api.setApiId(config.getSystemName());
  13. api.setOrganizationId(defaultOrgName);
  14. api.setEndpoint(config.getProxy().getApiBackend());
  15. api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale
  16. api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale
  17. api.setParsePayload(false); // can let user override this?
  18. api.setPublicAPI(true); // is there an equivalent of this?
  19. api.setVersion(defaultVersion); // don't think this is relevant anymore
  20. setPolicies(api, bean);
  21. log.debug("Processing: {0}", config);
  22. log.debug("Creating API: {0}", api);
  23. apis.add(api);
  24. }
  25. dataProcessed = true;
  26. checkQueue();
  27. } catch (DecodeException e) {
  28. failAll(e);
  29. }
  30. }

代码示例来源:origin: io.apiman/apiman-gateway-engine-3scale

  1. private void processData() {
  2. if (configs.size() == 0) {
  3. log.warn("File loaded into registry was empty. No entities created.");
  4. return;
  5. }
  6. try {
  7. // Naive version initially.
  8. for (Auth3ScaleBean bean : configs) {
  9. // Reflects the remote data structure.
  10. BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig();
  11. Api api = new Api();
  12. api.setApiId(config.getSystemName());
  13. api.setOrganizationId(defaultOrgName);
  14. api.setEndpoint(config.getProxy().getApiBackend());
  15. api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale
  16. api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale
  17. api.setParsePayload(false); // can let user override this?
  18. api.setPublicAPI(true); // is there an equivalent of this?
  19. api.setVersion(defaultVersion); // don't think this is relevant anymore
  20. setPolicies(api, bean);
  21. log.debug("Processing: {0}", config);
  22. log.debug("Creating API: {0}", api);
  23. apis.add(api);
  24. }
  25. dataProcessed = true;
  26. checkQueue();
  27. } catch (DecodeException e) {
  28. failAll(e);
  29. }
  30. }

代码示例来源:origin: apiman/apiman

  1. gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
  2. gatewayApi.setEndpointProperties(versionBean.getEndpointProperties());
  3. gatewayApi.setOrganizationId(versionBean.getApi().getOrganization().getId());

代码示例来源:origin: apiman/apiman

  1. gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
  2. if (versionBean.getEndpointContentType() != null) {
  3. gatewayApi.setEndpointContentType(versionBean.getEndpointContentType().toString());

代码示例来源:origin: io.apiman/apiman-manager-api-rest-impl

  1. gatewayApi.setEndpointType(versionBean.getEndpointType().toString());
  2. if (versionBean.getEndpointContentType() != null) {
  3. gatewayApi.setEndpointContentType(versionBean.getEndpointContentType().toString());

相关文章