Class SchemaStoreClient

java.lang.Object
org.restheart.mongodb.handlers.schema.SchemaStoreClient
All Implemented Interfaces:
Function<String,InputStream>, org.everit.json.schema.loader.SchemaClient

public class SchemaStoreClient extends Object implements org.everit.json.schema.loader.SchemaClient
A json-schema client that loads the schema from the db if the url refer to a schema store. If not it delegates to the DefaultSchemaClient.
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • SchemaStoreClient

      public SchemaStoreClient()
  • Method Details

    • get

      public InputStream get(String uri)
      Specified by:
      get in interface org.everit.json.schema.loader.SchemaClient
      Parameters:
      uri -
      Returns:
    • apply

      public InputStream apply(String url)
      Specified by:
      apply in interface Function<String,InputStream>
      Specified by:
      apply in interface org.everit.json.schema.loader.SchemaClient