package com.yelp.clientlib.connection;

import com.squareup.okhttp.Request;

import oauth.signpost.http.HttpRequest;
import se.akerfeldt.okhttp.signpost.OkHttpOAuthConsumer;

/**
 * {@link HttpOAuthConsumer} is an {@link oauth.signpost.OAuthConsumer} implementation to sign OkHttp {@link Request}s.
 */
public class HttpOAuthConsumer extends OkHttpOAuthConsumer {

    public HttpOAuthConsumer(String consumerKey, String consumerSecret) {
        super(consumerKey, consumerSecret);
    }

    @Override
    protected HttpRequest wrap(Object request) {
        return new HttpRequestAdapter((Request) request);
    }
}
@@ -292,16 +292,268 @@
 uest%7Ds.%0A
+ *%0A * %7B@link OkHttpOAuthConsumer%7D doesn't handle characters required for encoding %7B@link com.yelp.clientlib.entities%0A * .options.BoundingBoxOptions%7D, %7B@link HttpRequestAdapter%7D encodes those characters so oauth-signpost can sign%0A * requests correctly.%0A
  */%0Apubl

add more descrption to HttpOauthConsumer javadoc