Package com.github.kevinsawicki.http
Interface HttpRequest.ConnectionFactory
-
- Enclosing class:
- HttpRequest
public static interface HttpRequest.ConnectionFactoryCreatesHTTP connectionsforurls.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpRequest.ConnectionFactoryDEFAULTAHttpRequest.ConnectionFactorywhich uses the built-inURL.openConnection()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.HttpURLConnectioncreate(java.net.URL url)Open anHttpURLConnectionfor the specifiedURL.java.net.HttpURLConnectioncreate(java.net.URL url, java.net.Proxy proxy)Open anHttpURLConnectionfor the specifiedURLandProxy.
-
-
-
Field Detail
-
DEFAULT
static final HttpRequest.ConnectionFactory DEFAULT
AHttpRequest.ConnectionFactorywhich uses the built-inURL.openConnection()
-
-
Method Detail
-
create
java.net.HttpURLConnection create(java.net.URL url) throws java.io.IOExceptionOpen anHttpURLConnectionfor the specifiedURL.- Throws:
java.io.IOException
-
create
java.net.HttpURLConnection create(java.net.URL url, java.net.Proxy proxy) throws java.io.IOExceptionOpen anHttpURLConnectionfor the specifiedURLandProxy.- Throws:
java.io.IOException
-
-