public class RuntimeHttpUtils extends Object
Constructor and Description |
---|
RuntimeHttpUtils() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
fetchFile(URI uri,
ClientConfiguration config)
Fetches a file from the URI given and returns an input stream to it.
|
static URI |
toUri(String endpoint,
ClientConfiguration config)
Returns an URI for the given endpoint.
|
public static InputStream fetchFile(URI uri, ClientConfiguration config) throws IOException
uri
- the uri of the file to fetchconfig
- optional configuration overridesIOException
- on errorpublic static URI toUri(String endpoint, ClientConfiguration config)
IllegalArgumentException
- if the inputs are null.Copyright © 2016. All rights reserved.