Package com.github.kevinsawicki.http
Interface HttpRequest.ConnectionFactory
-
- Enclosing class:
- HttpRequest
public static interface HttpRequest.ConnectionFactory
CreatesHTTP connections
forurls
.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpRequest.ConnectionFactory
DEFAULT
AHttpRequest.ConnectionFactory
which uses the built-inURL.openConnection()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.HttpURLConnection
create(java.net.URL url)
Open anHttpURLConnection
for the specifiedURL
.java.net.HttpURLConnection
create(java.net.URL url, java.net.Proxy proxy)
Open anHttpURLConnection
for the specifiedURL
andProxy
.
-
-
-
Field Detail
-
DEFAULT
static final HttpRequest.ConnectionFactory DEFAULT
AHttpRequest.ConnectionFactory
which uses the built-inURL.openConnection()
-
-
Method Detail
-
create
java.net.HttpURLConnection create(java.net.URL url) throws java.io.IOException
Open anHttpURLConnection
for the specifiedURL
.- Throws:
java.io.IOException
-
create
java.net.HttpURLConnection create(java.net.URL url, java.net.Proxy proxy) throws java.io.IOException
Open anHttpURLConnection
for the specifiedURL
andProxy
.- Throws:
java.io.IOException
-
-