public class SchemaRouterImpl extends Object implements SchemaRouter
| Constructor and Description |
|---|
SchemaRouterImpl(HttpClient client,
FileSystem fs,
SchemaRouterOptions options) |
| Modifier and Type | Method and Description |
|---|---|
SchemaRouter |
addJson(URI uri,
JsonObject object)
Add one or more json documents including schemas on top or inner levels.
|
SchemaRouter |
addSchema(Schema schema)
Add a parsed schema to local cache.
|
List<Schema> |
registeredSchemas() |
Schema |
resolveCachedSchema(JsonPointer refPointer,
JsonPointer scope,
SchemaParser parser)
Resolve cached schema based on refPointer.
|
Future<Schema> |
resolveRef(JsonPointer pointer,
JsonPointer scope,
SchemaParser schemaParser)
Resolve $ref.
|
Future<Schema> |
solveAllSchemaReferences(Schema schema)
Deeply resolve all references of the provided
schema |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJson, create, createpublic SchemaRouterImpl(HttpClient client, FileSystem fs, SchemaRouterOptions options)
public List<Schema> registeredSchemas()
registeredSchemas in interface SchemaRouterpublic Schema resolveCachedSchema(JsonPointer refPointer, JsonPointer scope, SchemaParser parser)
SchemaRouterresolveCachedSchema in interface SchemaRouterpublic Future<Schema> resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser)
SchemaRouterSchemaException or an IllegalArgumentExceptionresolveRef in interface SchemaRouterSchema or failed with a SchemaException or an IllegalArgumentExceptionpublic SchemaRouter addSchema(Schema schema)
SchemaRouterSchemaParser when a new schema is parsedaddSchema in interface SchemaRouterpublic SchemaRouter addJson(URI uri, JsonObject object)
SchemaRouterthis#resolveCachedSchema(JsonPointer, JsonPointer, SchemaParser),
providing the correct refPointeraddJson in interface SchemaRouterpublic Future<Schema> solveAllSchemaReferences(Schema schema)
SchemaRouterschemasolveAllSchemaReferences in interface SchemaRouterCopyright © 2020 Eclipse. All rights reserved.