Package jetbrains.buildServer.util.http
Class HttpUrlConnectionFactory
- java.lang.Object
-
- jetbrains.buildServer.util.http.HttpUrlConnectionFactory
-
- All Implemented Interfaces:
JdbcDriverDownloader.UrlConnectionFactory
public class HttpUrlConnectionFactory extends Object implements JdbcDriverDownloader.UrlConnectionFactory
An implementation of
JdbcDriverDownloader.UrlConnectionFactorywhich uses the callback hell drivenHTTPRequestBuilder.- Since:
- 2018.1
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Constructor Summary
Constructors Constructor Description HttpUrlConnectionFactory(String requestMethod)Creates a newJdbcDriverDownloader.UrlConnectionFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcDriverDownloader.UrlConnectionWrapperopenConnection(URL url)Opens the connection to the given URL and returns the object which wraps the connection opened.StringtoString()
-
-
-
Constructor Detail
-
HttpUrlConnectionFactory
public HttpUrlConnectionFactory(@NotNull String requestMethod)Creates a new
JdbcDriverDownloader.UrlConnectionFactory.- Parameters:
requestMethod- the method for the HTTP URL request, one of:- GET;
- POST;
-
-
Method Detail
-
openConnection
@NotNull public JdbcDriverDownloader.UrlConnectionWrapper openConnection(@NotNull URL url) throws IOException
Opens the connection to the given URL and returns the object which wraps the connection opened.
- Specified by:
openConnectionin interfaceJdbcDriverDownloader.UrlConnectionFactory- Parameters:
url- the URL to open connection to.- Returns:
- the object which wraps the connection opened.
- Throws:
IOException- if an I/O error occurs.- See Also:
JdbcDriverDownloader.UrlConnectionFactory.openConnection(URL)
-
toString
@NotNull public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-