org.astrogrid.acr.ivoa.resource
Class AccessURL

java.lang.Object
  extended by org.astrogrid.acr.ivoa.resource.AccessURL
All Implemented Interfaces:
Serializable

public class AccessURL
extends Object
implements Serializable

URL from which a capability of a service can be accessed.

See Also:
Capability, Service, Interface, Serialized Form

Constructor Summary
AccessURL()
           
 
Method Summary
 String getUse()
          Indicates whether this AccessURL should be interpreted as a base URL, a full URL, or a URL to a directory that will produce a listing of files.
 URL getValue()
          Deprecated. prefer AccessURL.getValueURI()
 URI getValueURI()
          Access the literal value of the access url.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessURL

public AccessURL()
Method Detail

getValue

@Deprecated
public URL getValue()
Deprecated. prefer AccessURL.getValueURI()

The service endpoint.

Warnings:
will return null for an url with an unknown scheme, or which is invalid. To access the value then, use AccessURL.getValueURI()

getValueURI

public URI getValueURI()
Access the literal value of the access url.

Notes:
useful in cases where getValue() returns null
Returns:
the literal value of the access url.

getUse

public String getUse()
Indicates whether this AccessURL should be interpreted as a base URL, a full URL, or a URL to a directory that will produce a listing of files.



Copyright © 2002-2010 AstroGrid. All Rights Reserved.