Class DefaultSchemaClient
java.lang.Object
org.everit.json.schema.loader.internal.DefaultSchemaClient
- All Implemented Interfaces:
Function<String,,InputStream> SchemaClient
A
SchemaClient implementation which uses URL for reading the remote content.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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, waitMethods inherited from interface org.everit.json.schema.loader.SchemaClient
apply
-
Constructor Details
-
DefaultSchemaClient
public DefaultSchemaClient()
-
-
Method Details
-
get
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
-