Package com.sforce.ws

Examples of com.sforce.ws.ConnectorConfig


    private void initMetadataConnection() throws ConnectionException {
        if (this.connection == null) {
            initConnection();
        }
       
        ConnectorConfig configNew = new ConnectorConfig();
        configNew.setSessionId(config.getSessionId());
        configNew.setServiceEndpoint(METADATA_URI_PATTERN.matcher(config.getServiceEndpoint()).replaceFirst("$1/m/$2"));

        this.metadataConnection = new MetadataConnection(configNew);

        // Give the metadata connection a client id if we have one
        if (this.clientId != null) {
View Full Code Here


    private void initBulkConnection() throws ConnectionException, AsyncApiException {
        if (this.connection == null) {
            initConnection();
        }
       
        ConnectorConfig configNew = new ConnectorConfig();
        configNew.setSessionId(config.getSessionId());
        configNew.setServiceEndpoint(config.getServiceEndpoint());
        configNew.setRestEndpoint(RESTAPI_URI_PATTERN.matcher(config.getServiceEndpoint()).replaceFirst("$1/async/$2/"));
        this.bulkConnection = new BulkConnection(configNew);
    }
View Full Code Here

        assertNull(cachedConfig, "Unexpected cached config found.");
    }

    @Test
    public void testSkipCacheImplicit() throws Exception {
        ConnectorConfig nativeConfig = new ConnectorConfig();
        nativeConfig.setAuthEndpoint(userInfo.getServerEndpoint());
        nativeConfig.setUsername(userInfo.getUserName());
        nativeConfig.setPassword(userInfo.getPassword());

        // Login outside of the ForceServiceConnector
        PartnerConnection conn = Connector.newConnection(nativeConfig);

        // A session id can represent a username and password
View Full Code Here

public class Connector {

  public static final String END_POINT = "https://login.salesforce.com/services/Soap/m/30.0";

  public static MetadataConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

public class Connector {

  public static final String END_POINT = "http://localhost:8080/services/Soap/s/30.0";

  public static SoapConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

public class Connector {

  public static final String END_POINT = "https://login.salesforce.com/services/Soap/u/30.0";

  public static PartnerConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

public class Connector {

  public static final String END_POINT = "https://na3.salesforce.com/services/Soap/m/30.0";

  public static MetadataConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

public class Connector {

  public static final String END_POINT = "http://localhost:8080/services/Soap/m/31.0";

  public static MetadataConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

public class Connector {

  public static final String END_POINT = "http://localhost:8080/services/Soap/s/31.0";

  public static SoapConnection newConnection(String username, String password) throws ConnectionException {
    ConnectorConfig config = new ConnectorConfig();
    config.setUsername(username);
    config.setPassword(password);
    return newConnection(config);
  }
View Full Code Here

    private String profileId;
    private SalesforceEndpoints salesforceEndpoints;

    public Connection() {
        super();
        connectorConfig = new ConnectorConfig();
        metadataConnectorConfig = new ConnectorConfig();
        toolingConnectorConfig = new ConnectorConfig();
    }
View Full Code Here

TOP

Related Classes of com.sforce.ws.ConnectorConfig

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.