public class JacksonReferenceTransformer extends JsonReferenceTransformer
http(s)
and file
URL schemes, or associated relative URIs. Any other URIs
are ignored.base, root
Constructor and Description |
---|
JacksonReferenceTransformer(URI base,
JsonValue root)
Constructs a new Jackson JSON reference transformer.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isResolvable(URI uri)
Returns
true if the specified URI can be resolved by this transformer. |
protected JsonValue |
resolve(URI uri)
Resolves the specified URI into a JSON value.
|
transform
public JacksonReferenceTransformer(URI base, JsonValue root) throws JsonReferenceException
base
- the base URI of the referring document.root
- the root value of the referring document.JsonReferenceException
- if base
is not null
and is not an absolute URI.protected boolean isResolvable(URI uri)
JsonReferenceTransformer
true
if the specified URI can be resolved by this transformer.
The default implementation returns false
. This method is intended to be
overridden by subclasses that can resolve particular types of URIs.
isResolvable
in class JsonReferenceTransformer
uri
- the URI to test to determine if it can be resolved.true
if the specified URI can be resolved by this transformer.protected JsonValue resolve(URI uri) throws JsonException
JsonReferenceTransformer
The default implementation throws a JsonException
. This method is intended to
be overridden by subclasses that can resolve particular types of URIs.
resolve
in class JsonReferenceTransformer
uri
- the URI to resolve.JsonException
- if the URI could not be resolved.Copyright © 2025 Open Identity Platform Community. All rights reserved.