net.artima.place
Class URLLink

java.lang.Object
  |
  +--net.artima.place.URLLink

public class URLLink
extends java.lang.Object
implements Link

Represents a link to a resource on the network.

See Also:
Serialized Form

Constructor Summary
URLLink(java.lang.String url, ResourceInfo info)
          Construct a URLLink.
 
Method Summary
 void activate()
          Get and run the resource with a UI represented by this link.
 java.lang.Object getResourceFactory()
          Get and return the resource factory that can produce represented by this link.
 ResourceInfo getResourceInfo()
          Get a ResourceInfo class that provides information about this resource suitable for display to users.
 java.lang.String getURL()
          Returns a URL expression of this Link, if one exists.
 boolean hasURL()
          Indicates whether or not this Link can be expressed in terms of a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLLink

public URLLink(java.lang.String url,
               ResourceInfo info)
Construct a URLLink.
Method Detail

activate

public void activate()
              throws LinkActivationException,
                     java.rmi.RemoteException
Get and run the resource with a UI represented by this link.
Specified by:
activate in interface Link

getResourceFactory

public java.lang.Object getResourceFactory()
Get and return the resource factory that can produce represented by this link.
Specified by:
getResourceFactory in interface Link

getResourceInfo

public ResourceInfo getResourceInfo()
Get a ResourceInfo class that provides information about this resource suitable for display to users.
Specified by:
getResourceInfo in interface Link

hasURL

public boolean hasURL()
Indicates whether or not this Link can be expressed in terms of a URL.
Specified by:
hasURL in interface Link

getURL

public java.lang.String getURL()
Returns a URL expression of this Link, if one exists. If this Link cannot be expressed in terms of a URL, throws NoURLAvailableException. If hasURL() returns true, this method will return a String URL.
Specified by:
getURL in interface Link