Class SchemaRouter
- All Implemented Interfaces:
MutinyDelegate
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 Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaRouter
(io.vertx.json.schema.SchemaRouter delegate) Deprecated.SchemaRouter
(Object delegate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.addSchemaAlias
(Schema schema, String alias) Deprecated.addSchemaWithScope
(Schema schema, JsonPointer scope) Deprecated.static SchemaRouter
Deprecated.static SchemaRouter
create
(Vertx vertx, HttpClient client, FileSystem fs, io.vertx.json.schema.SchemaRouterOptions schemaRouterOptions) Deprecated.boolean
Deprecated.io.vertx.json.schema.SchemaRouter
Deprecated.int
hashCode()
Deprecated.static SchemaRouter
newInstance
(io.vertx.json.schema.SchemaRouter arg) Deprecated.Deprecated.resolveCachedSchema
(JsonPointer refPointer, JsonPointer schemaScope, SchemaParser parser) Deprecated.io.smallrye.mutiny.Uni<Schema>
resolveRef
(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.resolveRefAndAwait
(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.void
resolveRefAndForget
(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.toString()
Deprecated.
-
Field Details
-
__TYPE_ARG
Deprecated.
-
-
Constructor Details
-
SchemaRouter
public SchemaRouter(io.vertx.json.schema.SchemaRouter delegate) Deprecated. -
SchemaRouter
Deprecated.
-
-
Method Details
-
getDelegate
public io.vertx.json.schema.SchemaRouter getDelegate()Deprecated.- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
resolveCachedSchema
@Deprecated public Schema resolveCachedSchema(JsonPointer refPointer, JsonPointer schemaScope, SchemaParser parser) Deprecated.- Parameters:
refPointer
-schemaScope
-parser
-- Returns:
- the resolved schema, or null if no schema was found
-
resolveRef
@CheckReturnValue @Deprecated public io.smallrye.mutiny.Uni<Schema> resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.LikeresolveRef(io.vertx.mutiny.core.json.pointer.JsonPointer, io.vertx.mutiny.core.json.pointer.JsonPointer, io.vertx.mutiny.json.schema.SchemaParser)
but with a direct callback.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
pointer
-scope
-schemaParser
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
resolveRefAndAwait
@Deprecated public Schema resolveRefAndAwait(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.Blocking variant ofresolveRef(io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.json.schema.SchemaParser)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
pointer
-scope
-schemaParser
-- Returns:
- the Schema instance produced by the operation.
-
resolveRefAndForget
@Deprecated public void resolveRefAndForget(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser) Deprecated.Variant ofresolveRef(io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.json.schema.SchemaParser)
that ignores the result of the operation.This method subscribes on the result of
resolveRef(io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.json.schema.SchemaParser)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromresolveRef(io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.core.json.pointer.JsonPointer,io.vertx.mutiny.json.schema.SchemaParser)
but you don't need to compose it with other operations.- Parameters:
pointer
-scope
-schemaParser
-
-
addSchemaWithScope
Deprecated.- Parameters:
schema
- schema to addscope
-- Returns:
- a reference to this
-
addSchemaAlias
Deprecated.- Parameters:
schema
- schema to addalias
- the schema alias- Returns:
- a reference to this
-
addJson
Deprecated.- Parameters:
uri
-object
-- Returns:
- a reference to this
-
registeredSchemas
Deprecated.- Returns:
- a list of all registered schemas
-
create
@Deprecated public static SchemaRouter create(Vertx vertx, io.vertx.json.schema.SchemaRouterOptions schemaRouterOptions) Deprecated.- Parameters:
vertx
-schemaRouterOptions
-- Returns:
-
create
@Deprecated public static SchemaRouter create(Vertx vertx, HttpClient client, FileSystem fs, io.vertx.json.schema.SchemaRouterOptions schemaRouterOptions) Deprecated.- Parameters:
vertx
-client
-fs
-schemaRouterOptions
-- Returns:
-
addSchema
@Deprecated public SchemaRouter addSchema(Schema schema, io.vertx.core.json.pointer.JsonPointer[] aliasScopes) Deprecated.- Parameters:
schema
- schema to addaliasScopes
-- Returns:
- a reference to this
-
addJson
Deprecated.- Parameters:
uri
-object
-- Returns:
- a reference to this
-
newInstance
Deprecated.
-