Currently I'm using openstack4j to put objects into a publicly readable container. The upload works fine (I can get the URL of the object by piecing it together), but I'd like to be able to get the public URL of the uploaded object straight from the library if possible.
Looking through the docs I found ObjectLocation, but that only gives me the path component of the object instead of the full URL. Is there any way for me to get the full URL of an object using openstack4j?
My code for uploading a file is:
os.objectStorage.objects.put(containerName, objectName, Payloads.create(someFile))
Note: I'm actually using openstack4j in scala, though that shouldn't really matter.