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
 */
package org.apache.camel.component.zendesk.internal;

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

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

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

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

    private ZendeskApiCollection() {
        final Map aliases = new HashMap<>();
        final Map> apiHelpers = new EnumMap<>(ZendeskApiName.class);
        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 ZendeskApiCollection getCollection() {
        return ZendeskApiCollectionHolder.INSTANCE;
    }

    private static final class ZendeskApiCollectionHolder {
        private static final ZendeskApiCollection INSTANCE = new ZendeskApiCollection();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy