Package org.kohsuke.github.extras
Class OkHttpConnector
- java.lang.Object
-
- org.kohsuke.github.extras.OkHttpConnector
-
- All Implemented Interfaces:
HttpConnector
@Deprecated public class OkHttpConnector extends Object implements HttpConnector
Deprecated.This class depends on an unsupported version of OkHttp. Switch toOkHttpGitHubConnector
.HttpConnector
forOkHttpClient
.Unlike
HttpConnector.DEFAULT
, OkHttp does response caching. Making a conditional request against GitHubAPI and receiving a 304 response does not count against the rate limit. See http://developer.github.com/v3/#conditional-requests- Author:
- Roberto Tyley, Kohsuke Kawaguchi
- See Also:
OkHttpGitHubConnector
-
-
Field Summary
-
Fields inherited from interface org.kohsuke.github.HttpConnector
DEFAULT, OFFLINE
-
-
Constructor Summary
Constructors Constructor Description OkHttpConnector(com.squareup.okhttp.OkUrlFactory urlFactory)
Deprecated.Instantiates a new Ok http connector.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpURLConnection
connect(URL url)
Deprecated.Opens a connection to the given URL.
-
-
-
Method Detail
-
connect
public HttpURLConnection connect(URL url) throws IOException
Deprecated.Description copied from interface:HttpConnector
Opens a connection to the given URL.- Specified by:
connect
in interfaceHttpConnector
- Parameters:
url
- the url- Returns:
- the http url connection
- Throws:
IOException
- the io exception
-
-