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

org.apache.camel.component.olingo4.internal.Olingo4ApiCollection Maven / Gradle / Ivy

There is a newer version: 4.8.0
Show newest version
/*
 * Camel ApiCollection generated by camel-api-component-maven-plugin
 * Generated on: Sat Mar 24 18:59:49 UTC 2018
 */
package org.apache.camel.component.olingo4.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.olingo4.Olingo4Configuration;
import org.apache.camel.component.olingo4.Olingo4AppEndpointConfiguration;

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 Olingo4
 */
public final class Olingo4ApiCollection extends ApiCollection {

    private static Olingo4ApiCollection collection;

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

        List nullableArgs;

        aliases.clear();
        nullableArgs = Arrays.asList("queryParams");
        apiHelpers.put(Olingo4ApiName.DEFAULT, new ApiMethodHelper(Olingo4AppApiMethod.class, aliases, nullableArgs));
        apiMethods.put(Olingo4AppApiMethod.class, Olingo4ApiName.DEFAULT);

        setApiHelpers(apiHelpers);
        setApiMethods(apiMethods);
    }

    public Olingo4Configuration getEndpointConfiguration(Olingo4ApiName apiName) {
        Olingo4Configuration result = null;
        switch (apiName) {
        case DEFAULT:
            result = new Olingo4AppEndpointConfiguration();
            break;
        }
        return result;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy