Class VersionAwareRegionToEndpoint
java.lang.Object
org.jclouds.openstack.neutron.v2.functions.VersionAwareRegionToEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionVersionAwareRegionToEndpoint
(com.google.common.base.Supplier<Map<String, com.google.common.base.Supplier<URI>>> regionToEndpointSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
VersionAwareRegionToEndpoint
-
-
Method Details
-
apply
A quick fix to ensure Neutron works with endpoint definitions that are not version-agnostic. The service-side API will always have a v2.0 in the path. However, the endpoint will sometimes contain a v2.0 and sometimes it will not. The VersionAwareRegionToEndpoint ensures that the endpoint will always look the same before /v2.0 is added to it. Cannot leave labs until fixed: TODO: https://issues.apache.org/jira/browse/JCLOUDS-773 This code will be unnecessary once this is supported.
-