Interface HttpConnector

All Known Implementing Classes:
GitHubConnectorHttpConnectorAdapter, ImpatientHttpConnector, OkHttp3Connector, OkHttpConnector, OkHttpConnector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Deprecated public interface HttpConnector
Deprecated.
Use GitHubConnector instead.
Pluggability for customizing HTTP request behaviors or using altogether different library.

For example, you can implement this to st custom timeouts.

Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HttpConnector
    Deprecated.
    Default implementation that uses URL.openConnection().
    static final HttpConnector
    Deprecated.
    Stub implementation that is always off-line.
  • Method Summary

    Modifier and Type
    Method
    Description
    connect(URL url)
    Deprecated.
    Opens a connection to the given URL.
  • Field Details

  • Method Details

    • connect

      HttpURLConnection connect(URL url) throws IOException
      Deprecated.
      Opens a connection to the given URL.
      Parameters:
      url - the url
      Returns:
      the http url connection
      Throws:
      IOException - the io exception