public class URLStreamProvider extends Object implements StreamProvider
| Constructor and Description |
|---|
URLStreamProvider(int connectionTimeout,
int readTimeout,
String path,
String password,
String type)
Provide the connection timeout for the underlying connection.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
processURL(String spec,
String requestMethod,
Object params,
Map<String,List<String>> headers) |
InputStream |
readFrom(String spec) |
InputStream |
readFrom(String spec,
String requestMethod,
String params) |
public URLStreamProvider(int connectionTimeout,
int readTimeout,
String path,
String password,
String type)
connectionTimeout - time, in milliseconds, to attempt a connectionreadTimeout - the read timeout in millisecondspublic InputStream readFrom(String spec, String requestMethod, String params) throws IOException
readFrom in interface StreamProviderIOExceptionpublic HttpURLConnection processURL(String spec, String requestMethod, Object params, Map<String,List<String>> headers) throws IOException
IOExceptionpublic InputStream readFrom(String spec) throws IOException
readFrom in interface StreamProviderIOExceptionCopyright © 2016. All rights reserved.