org.apache.ambari.view
Interface URLStreamProvider
public interface URLStreamProvider
Provider of a URL stream.
readFrom
InputStream readFrom(String spec,
String requestMethod,
String params,
Map<String,String> headers)
throws IOException
- Read from the input stream specified by the given URL spec.
- Parameters:
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 null
- Returns:
- the input stream
- Throws:
IOException - if an error occurred connecting to the server
Copyright © 2015 Apache Software Foundation. All rights reserved.