net.oauth.client
Class URLConnectionClient

java.lang.Object
  extended by net.oauth.client.URLConnectionClient
All Implemented Interfaces:
net.oauth.http.HttpClient

public class URLConnectionClient
extends Object
implements net.oauth.http.HttpClient

An HttpClient based on HttpURLConnection.

HttpClient3 or HttpClient4 perform better than this class, as a rule; since they do things like connection pooling. They also support reading the body of an HTTP response whose status code isn't 200 (OK), which can enable your application to handle problems better.

Author:
John Kristian

Field Summary
private static String EOL
           
 
Fields inherited from interface net.oauth.http.HttpClient
CONNECT_TIMEOUT, DELETE, FOLLOW_REDIRECTS, GET, POST, PUT, READ_TIMEOUT
 
Constructor Summary
URLConnectionClient()
           
 
Method Summary
 net.oauth.http.HttpResponseMessage execute(net.oauth.http.HttpMessage request, Map<String,Object> parameters)
          Send a message to the service provider and get the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOL

private static final String EOL
See Also:
Constant Field Values
Constructor Detail

URLConnectionClient

public URLConnectionClient()
Method Detail

execute

public net.oauth.http.HttpResponseMessage execute(net.oauth.http.HttpMessage request,
                                                  Map<String,Object> parameters)
                                           throws IOException
Send a message to the service provider and get the response.

Specified by:
execute in interface net.oauth.http.HttpClient
Throws:
IOException


Copyright © 2016. All rights reserved.