class Amazon::Coral::AwsQueryUriHandler
Compiles the request URL from AwsQueryHandler
and any intervening signature handler.
Public Class Methods
new()
click to toggle source
# File lib/amazon/coral/awsqueryurihandler.rb, line 14 def initialize @log = LogFactory.getLog('Amazon::Coral::AwsQueryUriHandler') end
Public Instance Methods
before(job)
click to toggle source
# File lib/amazon/coral/awsqueryurihandler.rb, line 18 def before(job) http_verb = job.request[:http_verb] if http_verb.nil? raise "http_verb must be defined" elsif http_verb == 'GET' || http_verb == 'HEAD' job.request[:http_uri].query = job.request[:query_string_map].to_s else job.request[:http_query_map] = job.request[:query_string_map] end @log.debug "Final request URI: #{job.request[:http_uri]}" end