Class DefaultSchemaClient
- java.lang.Object
-
- org.everit.json.schema.loader.internal.DefaultSchemaClient
-
- All Implemented Interfaces:
Function<String,InputStream>,SchemaClient
public class DefaultSchemaClient extends Object implements SchemaClient
ASchemaClientimplementation which usesURLfor reading the remote content.
-
-
Constructor Summary
Constructors Constructor Description DefaultSchemaClient()
-
Method Summary
Modifier and Type Method Description InputStreamget(String url)Returns a stream to be used for reading the remote content (response body) of the URL.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.everit.json.schema.loader.SchemaClient
apply
-
-
-
-
Method Detail
-
get
public InputStream get(String url)
Description copied from interface:SchemaClientReturns a stream to be used for reading the remote content (response body) of the URL. In the case of a HTTP URL, implementations are expected send HTTP GET requests and the response is expected to be represented in UTF-8 character set.- Specified by:
getin interfaceSchemaClient- Parameters:
url- the URL of the remote resource- Returns:
- the input stream of the response
-
-