org.apache.camel.component.olingo2.internal.Olingo2ApiCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-olingo2 Show documentation
Show all versions of camel-olingo2 Show documentation
Camel Component for Apache Olingo2
/*
* Camel ApiCollection generated by camel-component-util-maven-plugin
* Generated on: Sat Mar 07 05:50:13 UTC 2015
*/
package org.apache.camel.component.olingo2.internal;
import java.util.Arrays;
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.util.component.ApiCollection;
import org.apache.camel.util.component.ApiMethodHelper;
/**
* Camel {@link ApiCollection} for Olingo2
*/
public final class Olingo2ApiCollection extends ApiCollection {
private static Olingo2ApiCollection collection;
private Olingo2ApiCollection() {
final Map aliases = new HashMap();
List nullableArgs;
aliases.clear();
nullableArgs = Arrays.asList("queryParams");
apis.put(Olingo2ApiName.DEFAULT, new ApiMethodHelper(Olingo2AppApiMethod.class, aliases, nullableArgs));
apiMethods.put(Olingo2AppApiMethod.class, Olingo2ApiName.DEFAULT);
}
public Olingo2Configuration getEndpointConfiguration(Olingo2ApiName apiName) {
Olingo2Configuration result = null;
switch (apiName) {
case DEFAULT:
result = new Olingo2AppEndpointConfiguration();
break;
}
return result;
}
public static synchronized Olingo2ApiCollection getCollection() {
if (collection == null) {
collection = new Olingo2ApiCollection();
}
return collection;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy