All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.zendesk.internal.ZendeskApiCollection Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
/*
 * Camel ApiCollection generated by camel-api-component-maven-plugin
 * Generated on: Sun Mar 11 14:31:26 UTC 2018
 */
package org.apache.camel.component.zendesk.internal;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.HashMap;

import org.apache.camel.component.zendesk.ZendeskConfiguration;
import org.apache.camel.component.zendesk.ZendeskEndpointConfiguration;

import org.apache.camel.util.component.ApiCollection;
import org.apache.camel.util.component.ApiMethod;
import org.apache.camel.util.component.ApiMethodHelper;

/**
 * Camel {@link ApiCollection} for Zendesk
 */
public final class ZendeskApiCollection extends ApiCollection {

    private static ZendeskApiCollection collection;

    private ZendeskApiCollection() {
        final Map aliases = new HashMap();
        final Map> apiHelpers = new HashMap<>();
        final Map, ZendeskApiName> apiMethods = new HashMap<>();

        List nullableArgs;

        aliases.clear();
        nullableArgs = Arrays.asList();
        apiHelpers.put(ZendeskApiName.DEFAULT, new ApiMethodHelper(ZendeskApiMethod.class, aliases, nullableArgs));
        apiMethods.put(ZendeskApiMethod.class, ZendeskApiName.DEFAULT);

        setApiHelpers(apiHelpers);
        setApiMethods(apiMethods);
    }

    public ZendeskConfiguration getEndpointConfiguration(ZendeskApiName apiName) {
        ZendeskConfiguration result = null;
        switch (apiName) {
        case DEFAULT:
            result = new ZendeskEndpointConfiguration();
            break;
        }
        return result;
    }

    public static synchronized ZendeskApiCollection getCollection() {
        if (collection == null) {
            collection = new ZendeskApiCollection();
        }
        return collection;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy