gpt4 book ai didi

org.apache.camel.component.yammer.YammerComponent类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 23:01:31 26 4
gpt4 key购买 nike

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

YammerComponent介绍

[英]Represents the component that manages YammerEndpoint.
[中]表示管理YammerEndpoint的组件。

代码示例

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

@ConditionalOnMissingBean(YammerComponent.class)
public YammerComponent configureYammerComponent() throws Exception {
  YammerComponent component = new YammerComponent();
  component.setCamelContext(camelContext);
  Map<String, Object> parameters = new HashMap<>();
  IntrospectionSupport.getProperties(configuration, parameters, null,

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

protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
  // by default use config for each endpoint; use from component level if one has been explicitly set
  YammerConfiguration endpointConfig = getConfig();
  if (endpointConfig == null) {
    endpointConfig = new YammerConfiguration();            
  }
  
  // set options from component
  endpointConfig.setConsumerKey(consumerKey);
  endpointConfig.setConsumerSecret(consumerSecret);
  endpointConfig.setAccessToken(accessToken);
  endpointConfig.setFunction(remaining);
  endpointConfig.setFunctionType(YammerFunctionType.fromUri(remaining));
  
  // and then override from parameters
  setProperties(endpointConfig, parameters);
  
  Endpoint endpoint = new YammerEndpoint(uri, this, endpointConfig);
  setProperties(endpoint, parameters);
  return endpoint;
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com