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 |
|---|---|
java.net.HttpURLConnection |
connect(java.net.URL url)
Opens a connection to the given URL.
|
static final HttpConnector DEFAULT
URL.openConnection().static final HttpConnector OFFLINE
Copyright © 2016. All Rights Reserved.