public interface HttpConnector
For example, you can implement this to st custom timeouts.
| Modifier and Type | Field and Description |
|---|---|
static HttpConnector |
DEFAULT
Default implementation that uses
URL.openConnection(). |
static HttpConnector |
OFFLINE
Stub implementation that is always off-line.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
connect(URL url)
Opens a connection to the given URL.
|
static final HttpConnector DEFAULT
URL.openConnection().static final HttpConnector OFFLINE
HttpURLConnection connect(URL url) throws IOException
IOExceptionCopyright © 2017. All rights reserved.