public class SchemaRouter extends Object
original 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) |
| Modifier and Type | Method and Description |
|---|---|
SchemaRouter |
addJson(String uri,
JsonObject object)
Add one or more json documents including schemas on top or inner levels.
|
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.
|
static SchemaRouter |
create(HttpClient client,
FileSystem fs,
SchemaRouterOptions schemaRouterOptions)
Create a new
SchemaRouter |
static SchemaRouter |
create(Vertx vertx,
SchemaRouterOptions schemaRouterOptions)
Create a new
SchemaRouter |
boolean |
equals(Object o) |
SchemaRouter |
getDelegate() |
int |
hashCode() |
static SchemaRouter |
newInstance(SchemaRouter arg) |
List<Schema> |
registeredSchemas() |
Schema |
resolveCachedSchema(JsonPointer refPointer,
JsonPointer schemaScope,
SchemaParser parser)
Resolve cached schema based on refPointer.
|
Future<Schema> |
resolveRef(JsonPointer pointer,
JsonPointer scope,
SchemaParser schemaParser)
Resolve $ref.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<SchemaRouter> __TYPE_ARG
public SchemaRouter(SchemaRouter delegate)
public SchemaRouter(Object delegate)
public SchemaRouter getDelegate()
public Schema resolveCachedSchema(JsonPointer refPointer, JsonPointer schemaScope, SchemaParser parser)
refPointer - schemaScope - parser - public Future<Schema> resolveRef(JsonPointer pointer, JsonPointer scope, SchemaParser schemaParser)
SchemaException or an IllegalArgumentExceptionpointer - scope - schemaParser - Schema or failed with a SchemaException or an IllegalArgumentExceptionpublic SchemaRouter addSchema(Schema schema)
SchemaParser when a new schema is parsedschema - public SchemaRouter addJson(String uri, JsonObject object)
refPointeruri - object - public static SchemaRouter create(Vertx vertx, SchemaRouterOptions schemaRouterOptions)
SchemaRoutervertx - schemaRouterOptions - public static SchemaRouter create(HttpClient client, FileSystem fs, SchemaRouterOptions schemaRouterOptions)
SchemaRouterclient - fs - schemaRouterOptions - public SchemaRouter addJson(URI uri, JsonObject object)
refPointeruri - object - public static SchemaRouter newInstance(SchemaRouter arg)
Copyright © 2020 Eclipse. All rights reserved.