com.mulesoft.adapter.cli
Class WsdlGenerationMain

java.lang.Object
  extended by com.mulesoft.adapter.cli.WsdlGenerationMain
All Implemented Interfaces:
SalesforceCallback

public class WsdlGenerationMain
extends Object
implements SalesforceCallback


Constructor Summary
WsdlGenerationMain(String username, String password, String securityToken)
          Creates a new Salesforce WSDL reader
 
Method Summary
 void connect()
          Connect to Salesforce
 DescribeLayoutResult describeLayout(String name)
           
 DescribeSObjectResult describeSObject(String name)
          Get the description of a specific Salesforce type
 List<String> getTypeNames()
          Return name of all salesforce classes
static void main(String[] args)
          Command-line wrapper to create a WsdlReader object and use it to read the Wsdl.
 void setupProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword)
          Setup the information required when connecting to salesforce via a proxy.
static void usage(boolean exit)
          Print a useage message, optionally exiting afterward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsdlGenerationMain

public WsdlGenerationMain(String username,
                          String password,
                          String securityToken)
                   throws MalformedURLException
Creates a new Salesforce WSDL reader

Parameters:
username - Username used to initialize the session
password - Password used to authenticate the user
securityToken - User's security securityToken
Throws:
MalformedURLException
Method Detail

main

public static void main(String[] args)
                 throws Exception
Command-line wrapper to create a WsdlReader object and use it to read the Wsdl. See osage() for the arguments

Throws:
Exception

usage

public static void usage(boolean exit)
Print a useage message, optionally exiting afterward


setupProxy

public void setupProxy(String proxyHost,
                       int proxyPort,
                       String proxyUsername,
                       String proxyPassword)
Setup the information required when connecting to salesforce via a proxy.


connect

public void connect()
             throws ConnectionException,
                    MalformedURLException,
                    AsyncApiException
Connect to Salesforce

Throws:
ConnectionException
MalformedURLException
AsyncApiException

getTypeNames

public List<String> getTypeNames()
                          throws ConnectionException
Description copied from interface: SalesforceCallback
Return name of all salesforce classes

Specified by:
getTypeNames in interface SalesforceCallback
Throws:
ConnectionException

describeSObject

public DescribeSObjectResult describeSObject(String name)
                                      throws ConnectionException
Description copied from interface: SalesforceCallback
Get the description of a specific Salesforce type

Specified by:
describeSObject in interface SalesforceCallback
Throws:
ConnectionException

describeLayout

public DescribeLayoutResult describeLayout(String name)
                                    throws ConnectionException
Throws:
ConnectionException


Copyright © 2012. All Rights Reserved.