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 StreamProvider
IOException
public HttpURLConnection processURL(String spec, String requestMethod, Object params, Map<String,List<String>> headers) throws IOException
IOException
public InputStream readFrom(String spec) throws IOException
readFrom
in interface StreamProvider
IOException
Copyright © 2017. All rights reserved.