public final class SnapshotResolver extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotResolver.Builder
Builder class for creating
SnapshotResolver instances. |
| Modifier and Type | Method and Description |
|---|---|
static SnapshotResolver.Builder |
builder()
Create a
Builder instance. |
ResourceSnapshot |
fromURI(URI endpoint)
Return a snapshot of the resource published at a given URI.
|
URI |
toURI(ResourceSnapshot snapshot)
Return the URI used to publish a resource.
|
public URI toURI(ResourceSnapshot snapshot)
snapshot - the snapshot of the resource that is to be resolved.SnapshotResolutionException - if the snapshot cannot be resolved to a URI.public ResourceSnapshot fromURI(URI endpoint)
endpoint - the URI that is to be resolved.SnapshotResolutionException - if the URI cannot be resolved to a resource snapshot.public static SnapshotResolver.Builder builder()
Builder instance.Builder instance.
Copyright (C) 2014-2016, Center for Open Middleware