def populate
response = self.connection.cfreq("HEAD",@storagehost,@storagepath+"/",@storageport,@storagescheme)
raise NoSuchContainerException, "Container #{@name} does not exist" unless (response.code =~ /^20/)
@bytes = response["x-container-bytes-used"].to_i
@count = response["x-container-object-count"].to_i
response = self.connection.cfreq("HEAD",@cdnmgmthost,@cdnmgmtpath,@cdnmgmtport,@cdnmgmtscheme)
@cdn_enabled = ((response["x-cdn-enabled"] || "").downcase == "true") ? true : false
@cdn_ttl = @cdn_enabled ? response["x-ttl"].to_i : false
@cdn_url = @cdn_enabled ? response["x-cdn-uri"] : false
@user_agent_acl = response["x-user-agent-acl"]
@referrer_acl = response["x-referrer-acl"]
if @cdn_enabled
@cdn_log = response["x-log-retention"] == "False" ? false : true
else
@cdn_log = false
end
true
end