thredds.catalog
Class InvAccess

java.lang.Object
  extended by thredds.catalog.InvAccess
Direct Known Subclasses:
InvAccessImpl

public abstract class InvAccess
extends java.lang.Object

Public interface to an access element, defining how to access a specific web resource.

Version:
$Revision: 48 $ $Date: 2006-07-12 16:15:40Z $
Author:
john caron

Constructor Summary
InvAccess()
           
 
Method Summary
 DataFormatType getDataFormatType()
          Get the dataFormatType; may be null, or inherited from dataset.
 InvDataset getDataset()
          Get the parent dataset.
 double getDataSize()
          Get the size in bytes.
 InvService getService()
          Get the service.
 java.net.URI getStandardUri()
          Construct the standard THREDDS access URI for this dataset access method, resolve if the URI is relative.
 java.lang.String getStandardUrlName()
          Get the standard URL, with resolution if the URL is reletive.
 java.lang.String getUnresolvedUrlName()
          Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix().
 java.lang.String getUrlPath()
          Get the urlPath.
 boolean hasDataSize()
          Return true if it has valid data size info
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvAccess

public InvAccess()
Method Detail

getDataset

public InvDataset getDataset()
Get the parent dataset. Should not be null.


getService

public InvService getService()
Get the service. Should not be null.


getUrlPath

public java.lang.String getUrlPath()
Get the urlPath. Should not be null.


getDataFormatType

public DataFormatType getDataFormatType()
Get the dataFormatType; may be null, or inherited from dataset.


getDataSize

public double getDataSize()
Get the size in bytes. A value of 0.0 or Double.NaN means unknown.


hasDataSize

public boolean hasDataSize()
Return true if it has valid data size info


getStandardUrlName

public java.lang.String getStandardUrlName()
Get the standard URL, with resolution if the URL is reletive. catalog.resolveURI( getUnresolvedUrlName())

Returns:
URL string, or null if error.

getStandardUri

public java.net.URI getStandardUri()
Construct the standard THREDDS access URI for this dataset access method, resolve if the URI is relative.

Returns:
the standard fully resolved THREDDS access URI for this dataset access method, or null if error.

getUnresolvedUrlName

public java.lang.String getUnresolvedUrlName()
Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). It is not resolved, so it may be a reletive URL.