Package com.ibm.sbt.services.endpoints

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


      return workflowService;
    }
   
    public AuthenticationService getAuthenticationService(String user, String password) {
      String url = System.getProperty("ServerUrl");
      BasicEndpoint basicEndpoint = new BasicEndpoint();
    basicEndpoint.setUrl(url);
    basicEndpoint.setForceTrustSSLCertificate(true);
    basicEndpoint.setUser(user);
    basicEndpoint.setPassword(password);

      return new AuthenticationService(basicEndpoint);
    }
View Full Code Here


  }
 
  @Before
  public void initActivityServiceTest() {
    if (activityService==null) {
      BasicEndpoint endpoint = getBasicEndpoint();
      activityService = (endpoint == null) ? new ActivityService() : new ActivityService(endpoint);
    }
  }
View Full Code Here

      if (basicEndpoint == null && System.getProperty("ServerUrl") != null) {
        String url = System.getProperty("ServerUrl");
        String user = System.getProperty("UserName");
        String password = System.getProperty("Password");
       
      basicEndpoint = new BasicEndpoint();
      basicEndpoint.setUrl(url);
      basicEndpoint.setForceTrustSSLCertificate(true);
      basicEndpoint.setUser(user);
      basicEndpoint.setPassword(password);
     
View Full Code Here

      if (altEndpoint == null && System.getProperty("ServerUrl") != null) {
        String url = System.getProperty("ServerUrl");
        String user = System.getProperty("UserNameAlt");
        String password = System.getProperty("PasswordAlt");
       
        altEndpoint = new BasicEndpoint();
        altEndpoint.setUrl(url);
        altEndpoint.setForceTrustSSLCertificate(true);
        altEndpoint.setUser(user);
        altEndpoint.setPassword(password);
      }
View Full Code Here

  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);
      basicEndpoint.setUser(user);
      basicEndpoint.setPassword(password);
View Full Code Here

        this.communityService = new CommunityService();
        this.communityService.setEndpoint(createEndpoint(url, user, password));
    }
   
    private BasicEndpoint createEndpoint(String url, String user, String password) {
      BasicEndpoint endpoint = new ConnectionsBasicEndpoint();
      endpoint.setUrl(url);
      endpoint.setUser(user);
      endpoint.setPassword(password);
      endpoint.setForceTrustSSLCertificate(true);
      return endpoint;
    }
View Full Code Here

  /**
   * @return the basicEndpoint
   */
  public BasicEndpoint getBasicEndpoint() {
      if (basicEndpoint == null) {
      basicEndpoint = new BasicEndpoint();
      basicEndpoint.setUrl(url);
      basicEndpoint.setForceTrustSSLCertificate(true);
      basicEndpoint.setUser(user);
      basicEndpoint.setPassword(password);
      // enable to use a proxy
View Full Code Here

   * @param user The username to authenticate with.
   * @param password The Password to authenticate with.
   * @return RestClient An instance of the RestClient
   */
  public RestClient(String url, String user, String password) {
    BasicEndpoint endpoint = createBasicEndpoint(url, user, password);
    restService = new RestService(endpoint);
  }
View Full Code Here

  // Internals
  //
 
  private RestService getService(String serviceUrl) {
    if (restService == null) {
      BasicEndpoint endpoint = createBasicEndpoint(serviceUrl, null, null);
      restService = new RestService(endpoint);
    }
    return restService;
  }
View Full Code Here

  /**
   * @return the basicEndpoint
   */
  public BasicEndpoint getBasicEndpoint() {
      if (basicEndpoint == null) {
      basicEndpoint = new BasicEndpoint();
      basicEndpoint.setUrl(url);
      basicEndpoint.setForceTrustSSLCertificate(true);
      basicEndpoint.setUser(user);
      basicEndpoint.setPassword(password);
      // enable to use a proxy
View Full Code Here

TOP

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

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.