public interface URLStreamProvider
Modifier and Type | Method and Description |
---|---|
InputStream |
readFrom(String spec,
String requestMethod,
String params,
Map<String,String> headers)
Read from the input stream specified by the given URL spec.
|
InputStream readFrom(String spec, String requestMethod, String params, Map<String,String> headers) throws IOException
spec
- the String to parse as a URLrequestMethod
- the HTTP method (GET,POST,PUT,etc.).params
- the body of the request; may be nullheaders
- the headers of the request; may be nullIOException
- if an error occurred connecting to the serverCopyright © 2015. All rights reserved.