Package com.ibm.sbt.services.endpoints

Examples of com.ibm.sbt.services.endpoints.SmartCloudBasicEndpoint


          ep.setUrl(null);
        }
      }
    }
    {
      SmartCloudBasicEndpoint ep = (SmartCloudBasicEndpoint)ManagedBeanUtil.getBean(context, "smartcloudBasic");
      if(ep!=null) {
        if(env.hasRuntime("smartcloud")) {
          ep.setUrl(env.getField("Sma_URL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      SmartCloudFormEndpoint ep = (SmartCloudFormEndpoint)ManagedBeanUtil.getBean(context, "smartcloudForm");
      if(ep!=null) {
        if(env.hasRuntime("smartcloud")) {
          ep.setUrl(env.getField("Sma_URL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      SmartCloudOAuthEndpoint ep = (SmartCloudOAuthEndpoint)ManagedBeanUtil.getBean(context, "smartcloudOA");
      if(ep!=null) {
        if(env.hasRuntime("smartcloud")) {
          ep.setUrl(env.getField("Sma_URL"));
          ep.setConsumerKey(env.getField("Sma_OA_ConsumerKey"));
          ep.setConsumerSecret(env.getField("Sma_OA_ConsumerSecret"));
          ep.setRequestTokenURL(env.getField("Sma_OA_RequestTokenURL"));
          ep.setAuthorizationURL(env.getField("Sma_OA_AuthorizationURL"));
          ep.setAccessTokenURL(env.getField("Sma_OA_AccessTokenURL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      SmartCloudOAuth2Endpoint ep = (SmartCloudOAuth2Endpoint)ManagedBeanUtil.getBean(context, "smartcloudOA2");
      if(ep!=null) {
        if(env.hasRuntime("smartcloud")) {
          ep.setUrl(env.getField("Sma_URL"));
          ep.setConsumerKey(env.getField("Sma_OA2_ConsumerKey"));
          ep.setConsumerSecret(env.getField("Sma_OA2_ConsumerSecret"));
          ep.setAuthorizationURL(env.getField("Sma_OA2_AuthorizationURL"));
          ep.setAccessTokenURL(env.getField("Sma_OA2_AccessTokenURL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      DominoBasicEndpoint ep = (DominoBasicEndpoint)ManagedBeanUtil.getBean(context, "dominoBasic");
      if(ep!=null) {
        if(env.hasRuntime("domino")) {
          ep.setUrl(env.getField("Dom_URL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      SametimeBasicEndpoint ep = (SametimeBasicEndpoint)ManagedBeanUtil.getBean(context, "sametime");
      if(ep!=null) {
        if(env.hasRuntime("sametime")) {
          ep.setUrl(env.getField("St_URL"));
        } else {
          ep.setUrl(null);
        }
      }
    }
    {
      TwitterOAuthEndpoint epd = (TwitterOAuthEndpoint)ManagedBeanUtil.getBean(context, "twitter");
View Full Code Here


   * @return the basicEndpoint
   */
  public BasicEndpoint getBasicEndpoint() {
      if (basicEndpoint == null) {
        if ("true".equals(System.getProperty("isSmartCloud"))) {
          basicEndpoint = new SmartCloudBasicEndpoint();         
        } else {
          basicEndpoint = new BasicEndpoint();
        }
      basicEndpoint.setUrl(url);
      basicEndpoint.setForceTrustSSLCertificate(true);
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.endpoints.SmartCloudBasicEndpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.