org.apache.camel.component.olingo2.internal.Olingo2ApiCollection Maven / Gradle / Ivy
/*
* Camel ApiCollection generated by camel-api-component-maven-plugin
*/
package org.apache.camel.component.olingo2.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.olingo2.Olingo2Configuration;
import org.apache.camel.component.olingo2.Olingo2AppEndpointConfiguration;
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 Olingo2
*/
public final class Olingo2ApiCollection extends ApiCollection {
private Olingo2ApiCollection() {
final Map aliases = new HashMap<>();
final Map> apiHelpers = new EnumMap<>(Olingo2ApiName.class);
final Map, Olingo2ApiName> apiMethods = new HashMap<>();
List nullableArgs;
aliases.clear();
nullableArgs = Arrays.asList("queryParams", "endpointHttpHeaders", "edm", "responseHandler");
apiHelpers.put(Olingo2ApiName.DEFAULT, new ApiMethodHelper<>(Olingo2AppApiMethod.class, aliases, nullableArgs));
apiMethods.put(Olingo2AppApiMethod.class, Olingo2ApiName.DEFAULT);
setApiHelpers(apiHelpers);
setApiMethods(apiMethods);
}
public Olingo2Configuration getEndpointConfiguration(Olingo2ApiName apiName) {
Olingo2Configuration result = null;
switch (apiName) {
case DEFAULT:
result = new Olingo2AppEndpointConfiguration();
break;
}
return result;
}
public static Olingo2ApiCollection getCollection() {
return Olingo2ApiCollectionHolder.INSTANCE;
}
private static final class Olingo2ApiCollectionHolder {
private static final Olingo2ApiCollection INSTANCE = new Olingo2ApiCollection();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy