public abstract class SchemaClient extends Object implements com.google.common.base.Function<String,InputStream>
SchemaLoader to fetch the contents denoted by remote JSON
pointer.
Implementations are expected to support the HTTP/1.1 protocol, the support of other protocols is optional.
| Constructor and Description |
|---|
SchemaClient() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
apply(String url) |
abstract InputStream |
get(String url)
Returns a stream to be used for reading the remote content (response body) of the URL.
|
public InputStream apply(String url)
apply in interface com.google.common.base.Function<String,InputStream>public abstract InputStream get(String url)
url - the URL of the remote resourceRuntimeException - if an IO error occurs.Copyright © 2017 Everit Kft.. All rights reserved.