public class SchemaRouter extends Object
It also contains a cache of including on top or inner level some json schemas that could eventually parsed later.
You should not share this object between different threads
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SchemaRouter> |
__TYPE_ARG |
Constructor and Description |
---|
SchemaRouter(Object delegate) |
SchemaRouter(SchemaRouter delegate) |
public static final io.vertx.lang.rx.TypeArg<SchemaRouter> __TYPE_ARG
public SchemaRouter(SchemaRouter delegate)
public SchemaRouter(Object delegate)
public SchemaRouter getDelegate()
@Deprecated public Schema resolveCachedSchema(JsonPointer refPointer, JsonPointer schemaScope, SchemaParser parser)
refPointer
- schemaScope
- parser
- @Deprecated public void resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser, Handler<AsyncResult<Schema>> handler)
resolveRef(io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.json.schema.SchemaParser, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.json.schema.Schema>>)
but with a direct callback.pointer
- scope
- schemaParser
- handler
- @Deprecated public void resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser)
resolveRef(io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.json.schema.SchemaParser, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.json.schema.Schema>>)
but with a direct callback.pointer
- scope
- schemaParser
- @Deprecated public Single<Schema> rxResolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser)
resolveRef(io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.core.json.pointer.JsonPointer, io.vertx.rxjava.json.schema.SchemaParser, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.json.schema.Schema>>)
but with a direct callback.pointer
- scope
- schemaParser
- @Deprecated public SchemaRouter addSchemaWithScope(Schema schema, JsonPointer scope)
Schema.getScope()
. This may be useful to register links to singleton schemas.
This method is automatically called by SchemaParser
when a new schema is parsedschema
- schema to addscope
- @Deprecated public SchemaRouter addSchemaAlias(Schema schema, String alias)
schema
- schema to addalias
- the schema alias@Deprecated public SchemaRouter addJson(String uri, JsonObject object)
You can use this schema if you have externally loaded some json document and you want to register to the schema router.
You can later parse and retrieve a schema from this json structure using ,
providing the correct refPointer
uri
- object
- @Deprecated public List<Schema> registeredSchemas()
@Deprecated public static SchemaRouter create(Vertx vertx, SchemaRouterOptions schemaRouterOptions)
SchemaRouter
vertx
- schemaRouterOptions
- @Deprecated public static SchemaRouter create(Vertx vertx, HttpClient client, FileSystem fs, SchemaRouterOptions schemaRouterOptions)
SchemaRouter
vertx
- client
- fs
- schemaRouterOptions
- @Deprecated public SchemaRouter addSchema(Schema schema, JsonPointer[] aliasScopes)
Schema.getScope()
and,
if you provide additional aliasScopes, this method register links to this schema with these scopes.
This method is automatically called by SchemaParser
when a new schema is parsedschema
- schema to addaliasScopes
- @Deprecated public SchemaRouter addJson(URI uri, JsonObject object)
You can use this schema if you have externally loaded some json document and you want to register to the schema router.
You can later parse and retrieve a schema from this json structure using ,
providing the correct refPointer
uri
- object
- public static SchemaRouter newInstance(SchemaRouter arg)
Copyright © 2024 Eclipse. All rights reserved.