APISonar


org.apache.camel.component.salesforce.internal.PayloadFormat.XML

> org > apache > camel > component > salesforce > internal > PayloadFormat > XML
org APIs apache APIs camel APIs component APIs salesforce APIs internal APIs PayloadFormat APIs XML APIs

Example 1
public CompositeApiProcessor(final SalesforceEndpoint endpoint) throws SalesforceException {
        super(endpoint);

        final SalesforceEndpointConfig configuration = endpoint.getConfiguration();
        final String apiVersion = configuration.getApiVersion();

        format = configuration.getFormat();

        if (!EnumSet.of(PayloadFormat.JSON, PayloadFormat.XML).contains(format)) {
            throw new SalesforceException("Unsupported format: " + format, 0);
        }

        compositeClient = new DefaultCompositeApiClient(configuration, format, apiVersion, session, httpClient);

    }