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
A SchemaClient implementation which uses URL for reading the remote content.
  • Constructor Details

    • DefaultSchemaClient

      public DefaultSchemaClient()
  • Method Details

    • get

      public InputStream get(String url)
      Description copied from interface: SchemaClient
      Returns 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:
      get in interface SchemaClient
      Parameters:
      url - the URL of the remote resource
      Returns:
      the input stream of the response