@Component
public class WonMessageUriResolver
extends java.lang.Object
| Constructor and Description |
|---|
WonMessageUriResolver() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
toGenericMessageURI(java.net.URI nodeSpecificMessageUri,
java.util.Optional<java.net.URI> requesterWebID,
LinkedDataSource linkedDataSource)
Reverse operation: get the message uri for a node-specific one.
|
java.net.URI |
toGenericMessageURI(java.net.URI localMessageUri,
WonNodeInfo wonNodeInfo)
Converts the
localMessageUri that is dereferencable on the
specified WoN node to a generic one. |
java.net.URI |
toLocalMessageURI(java.net.URI toResolve,
LinkedDataSource linkedDataSource)
Same as resolve(URI, URI, LinkedDataSource) but try to resolve without
guessing the WoN node based on the referring document.
|
java.net.URI |
toLocalMessageURI(java.net.URI toResolve,
java.util.Optional<java.net.URI> referringDocument,
java.util.Optional<java.net.URI> requesterWebID,
LinkedDataSource linkedDataSource)
Assuming that the URI
toResolve was found in a document
identified by referringDocument, use this information to map the
possibly non-dereferencable URI toResolve to a dereferencable
one. |
java.net.URI |
toLocalMessageURI(java.net.URI genericMessageUri,
WonNodeInfo wonNodeInfo)
Converts the specified URI
genericMessageUri to a message URI
that is dereferencable on the specified WoN node. |
java.net.URI |
toLocalMessageURIForWonNode(java.net.URI toResolve,
java.util.Optional<java.net.URI> wonNodeUri,
LinkedDataSource linkedDataSource)
Converts the specified uri
toResolve to a local message uri on
the WoN node identified by the specified wonNodeUri. |
public java.net.URI toGenericMessageURI(java.net.URI nodeSpecificMessageUri,
java.util.Optional<java.net.URI> requesterWebID,
LinkedDataSource linkedDataSource)
nodeSpecificMessageUri - requesterWebID - linkedDataSource - toResolve
if it could not be convertedpublic java.net.URI toGenericMessageURI(java.net.URI localMessageUri,
WonNodeInfo wonNodeInfo)
localMessageUri that is dereferencable on the
specified WoN node to a generic one.localMessageUri - wonNodeInfo - toResolve
if it could not be convertedpublic java.net.URI toLocalMessageURI(java.net.URI toResolve,
LinkedDataSource linkedDataSource)
toResolve - linkedDataSource - toResolve if it
could not be convertedpublic java.net.URI toLocalMessageURI(java.net.URI toResolve,
java.util.Optional<java.net.URI> referringDocument,
java.util.Optional<java.net.URI> requesterWebID,
LinkedDataSource linkedDataSource)
toResolve was found in a document
identified by referringDocument, use this information to map the
possibly non-dereferencable URI toResolve to a dereferencable
one.referringDocument - The document containing toResolvetoResolve - The URI to be mapped to a dereferencable one.toResolvepublic java.net.URI toLocalMessageURIForWonNode(java.net.URI toResolve,
java.util.Optional<java.net.URI> wonNodeUri,
LinkedDataSource linkedDataSource)
toResolve to a local message uri on
the WoN node identified by the specified wonNodeUri. If that
fails, the default WoN node is used instead.toResolve - wonNodeUri - requesterWebID - linkedDataSource - toResolve if it
could not be convertedpublic java.net.URI toLocalMessageURI(java.net.URI genericMessageUri,
WonNodeInfo wonNodeInfo)
genericMessageUri to a message URI
that is dereferencable on the specified WoN node.genericMessageUri - wonNodeInfo - genericMessageUri if it could not be convertedCopyright © 2020. All Rights Reserved.