@Mojo(name="generate",
defaultPhase=GENERATE_SOURCES)
public class CamelSalesforceMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
CamelSalesforceMojo.GeneratorUtility |
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId
Salesforce client id.
|
protected String |
clientSecret
Salesforce client secret.
|
protected static int |
DEFAULT_TIMEOUT |
protected String |
excludePattern
Exclude Salesforce SObjects that match pattern.
|
protected String[] |
excludes
Do NOT generate DTOs for these Salesforce SObjects.
|
protected Map<String,Object> |
httpClientProperties
HTTP client properties.
|
protected String |
httpProxyHost
HTTP Proxy host.
|
protected String |
httpProxyPassword
Proxy authentication password.
|
protected Integer |
httpProxyPort
HTTP Proxy port.
|
protected String |
httpProxyUsername
Proxy authentication username.
|
protected String |
includePattern
Include Salesforce SObjects that match pattern.
|
protected String[] |
includes
Names of Salesforce SObject for which DTOs must be generated.
|
protected String |
loginUrl
Salesforce login URL, defaults to https://login.salesforce.com.
|
protected File |
outputDirectory
Location of generated DTO files, defaults to target/generated-sources/camel-salesforce.
|
protected String |
packageName
Java package name for generated DTOs.
|
protected String |
password
Salesforce password.
|
protected org.apache.camel.util.jsse.SSLContextParameters |
sslContextParameters
SSL Context parameters.
|
protected String |
userName
Salesforce username.
|
protected String |
version
Salesforce API version.
|
| Constructor and Description |
|---|
CamelSalesforceMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.jetty.client.HttpClient |
createHttpClient() |
void |
execute()
Execute the mojo to generate SObject DTOs
|
protected void |
filterObjectNames(Set<String> objectNames) |
protected static final int DEFAULT_TIMEOUT
@Parameter protected Map<String,Object> httpClientProperties
@Parameter(property="camelSalesforce.sslContextParameters") protected org.apache.camel.util.jsse.SSLContextParameters sslContextParameters
@Parameter(property="camelSalesforce.httpProxyHost") protected String httpProxyHost
@Parameter(property="camelSalesforce.httpProxyPort") protected Integer httpProxyPort
@Parameter(property="camelSalesforce.httpProxyUsername") protected String httpProxyUsername
@Parameter(property="camelSalesforce.httpProxyPassword") protected String httpProxyPassword
@Parameter(property="camelSalesforce.clientId",
required=true)
protected String clientId
@Parameter(property="camelSalesforce.clientSecret",
required=true)
protected String clientSecret
@Parameter(property="camelSalesforce.userName",
required=true)
protected String userName
@Parameter(property="camelSalesforce.password",
required=true)
protected String password
@Parameter(property="camelSalesforce.version",
defaultValue="33.0")
protected String version
@Parameter(property="camelSalesforce.outputDirectory",
defaultValue="${project.build.directory}/generated-sources/camel-salesforce")
protected File outputDirectory
@Parameter(property="camelSalesforce.loginUrl",
defaultValue="https://login.salesforce.com")
protected String loginUrl
@Parameter protected String[] includes
@Parameter protected String[] excludes
@Parameter(property="camelSalesforce.includePattern") protected String includePattern
@Parameter(property="camelSalesforce.excludePattern") protected String excludePattern
@Parameter(property="camelSalesforce.packageName",
defaultValue="org.apache.camel.salesforce.dto")
protected String packageName
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void filterObjectNames(Set<String> objectNames) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.eclipse.jetty.client.HttpClient createHttpClient()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionApache Camel