| Constructor and Description |
|---|
HurlStack() |
HurlStack(boolean followRedirects,
boolean useCaches,
int connectTimeout,
int readTimeout) |
| Modifier and Type | Method and Description |
|---|---|
HttpConnection |
createNewConnection(String method,
String url)
Creates a new connection for a given URL and HTTP Method.
|
public HurlStack()
public HurlStack(boolean followRedirects,
boolean useCaches,
int connectTimeout,
int readTimeout)
public HttpConnection createNewConnection(String method, String url) throws IOException
HttpStackcreateNewConnection in interface HttpStackmethod - HTTP Methodurl - URL to which to connect toIOException - if an error occurs while creating the connection object