Class SchemaStoreURL

java.lang.Object
org.restheart.mongodb.handlers.schema.SchemaStoreURL

public class SchemaStoreURL extends Object
if the id of the schema is a valid SchemaStoreURL it can be loaded from the schema store (querying mongodb with caching and avoiding the http overhead) the format is: http://schema-store/schemaStoreDb/schemaId schemaId refers to the mongodb _id and not to the id property
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Field Details

  • Constructor Details

    • SchemaStoreURL

      public SchemaStoreURL(String schemaDb, org.bson.BsonValue schemaId)
      Parameters:
      schemaDb -
      schemaId -
    • SchemaStoreURL

      public SchemaStoreURL(String url)
      Parameters:
      url -
  • Method Details

    • isValid

      public static boolean isValid(String url)
      Parameters:
      url -
      Returns:
    • getSchemaDb

      public String getSchemaDb()
      Returns:
    • getSchemaId

      public org.bson.BsonValue getSchemaId()
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object