Class: OAuth::RequestProxy::JabberRequest

### Home Classes Methods

### In Files

- lib/oauth/request_proxy/jabber_request.rb

### Parent

OAuth::RequestProxy::Base

### Methods

- #method
- #normalized_uri
- #parameters
- #uri

### Files

- LICENSE
- README.rdoc
- TODO

### Class/Module Index

Quicksearch

- OAuth
- OAuth::AccessToken
- OAuth::CLI
- OAuth::Client
- OAuth::Client::Helper
- OAuth::Consumer
- OAuth::ConsumerToken
- OAuth::Error
- OAuth::Helper
- OAuth::OAuthTestHelper
- OAuth::Problem
- OAuth::RequestProxy
- OAuth::RequestProxy::ActionControllerRequest
- OAuth::RequestProxy::Base
- OAuth::RequestProxy::Curl
- OAuth::RequestProxy::Curl::Easy
- OAuth::RequestProxy::EventMachine
- OAuth::RequestProxy::EventMachine::HttpRequest
- OAuth::RequestProxy::JabberRequest
- OAuth::RequestProxy::MockRequest
- OAuth::RequestProxy::Net
- OAuth::RequestProxy::Net::HTTP
- OAuth::RequestProxy::Net::HTTP::HTTPRequest
- OAuth::RequestProxy::RackRequest
- OAuth::RequestProxy::Typhoeus
- OAuth::RequestProxy::Typhoeus::Request
- OAuth::RequestProxy::UnknownRequestType
- OAuth::RequestToken
- OAuth::Server
- OAuth::ServerToken
- OAuth::Signature
- OAuth::Signature::Base
- OAuth::Signature::HMAC
- OAuth::Signature::HMAC::Base
- OAuth::Signature::HMAC::MD5
- OAuth::Signature::HMAC::RMD160
- OAuth::Signature::HMAC::SHA1
- OAuth::Signature::HMAC::SHA2
- OAuth::Signature::MD5
- OAuth::Signature::PLAINTEXT
- OAuth::Signature::RSA
- OAuth::Signature::RSA::SHA1
- OAuth::Signature::SHA1
- OAuth::Signature::UnknownSignatureMethod
- OAuth::Token
- OAuth::Unauthorized
- ActionController
- ActionController::Base
- ActionController::TestRequest
- Digest
- Digest::HMAC
- EventMachine
- EventMachine::HttpClient
- Net
- Net::HTTPGenericRequest
- Object
- String

No matching classes.

# OAuth::RequestProxy::JabberRequest

### Public Instance Methods

method() click to toggle source

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

normalized_uri() click to toggle source

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

parameters() click to toggle 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

      %( 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

uri() click to toggle 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]

Generated with the Darkfish Rdoc Generator 2.