net.dpml.transit
Interface LinkManager


public interface LinkManager

The LinkManager is responsible for storing the mapping between a Link instance and a URI.

Version:
2.1.0
Author:
Digital Product Management Library

Method Summary
 URI getTargetURI(URI link)
          Returns the URI that the supplied link URI is referencing.
 void setTargetURI(URI link, URI target)
          Sets the URI for the provided link URI.
 

Method Detail

setTargetURI

void setTargetURI(URI link,
                  URI target)
                  throws IOException
Sets the URI for the provided link URI. The LinkManager is required to persist this information between JVM restarts and should be persisted on a scope larger than a single JVM, typically a host or a local area network. LinkManagers are encouraged to establish other virtual scopes independent of network topologies.

Parameters:
link - the uri of the link
target - the uri of the target that the link redirects to
Throws:
IOException - if an IO error occurs

getTargetURI

URI getTargetURI(URI link)
                 throws IOException
Returns the URI that the supplied link URI is referencing.

Parameters:
link - the link uri
Returns:
the target uri
Throws:
IOException - if an IO error occurs