Class OAuth::RequestProxy::JabberRequest
In: lib/oauth/request_proxy/jabber_request.rb
Parent: OAuth::RequestProxy::Base

Methods

Public Instance methods

[Source]

# File lib/oauth/request_proxy/jabber_request.rb, line 28
      def method
        @request.name
      end

[Source]

# File lib/oauth/request_proxy/jabber_request.rb, line 36
      def normalized_uri
        uri
      end

[Source]

# File lib/oauth/request_proxy/jabber_request.rb, line 11
      def parameters
        return @params if @params

        @params = {}

        oauth = @request.get_elements('//oauth').first
        return @params unless oauth

        %w( oauth_token oauth_consumer_key oauth_signature_method oauth_signature
            oauth_timestamp oauth_nonce oauth_version ).each do |param|
          next unless element = oauth.first_element(param)
          @params[param] = element.text
        end

        @params
      end

[Source]

# File lib/oauth/request_proxy/jabber_request.rb, line 32
      def uri
        [@request.from.strip.to_s, @request.to.strip.to_s].join("&")
      end

[Validate]