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 Summary
Constructors Constructor Description SchemaStoreClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamapply(String url)InputStreamget(String uri)
-
-
-
Method Detail
-
get
public InputStream get(String uri)
- Specified by:
getin interfaceorg.everit.json.schema.loader.SchemaClient- Parameters:
uri-- Returns:
-
apply
public InputStream apply(String url)
- Specified by:
applyin interfaceFunction<String,InputStream>- Specified by:
applyin interfaceorg.everit.json.schema.loader.SchemaClient
-
-