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.0.3
Author:
Digital Product Management Laboratory

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

Method Detail

setTargetURI

void setTargetURI(java.net.URI link,
                  java.net.URI target)
                  throws java.io.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:
java.io.IOException - if an IO error occurs

getTargetURI

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

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