thredds.catalog
Class InvAccess

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

public abstract class InvAccess
extends Object

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

Author:
john caron

Field Summary
protected  DataFormatType dataFormat
           
protected  InvDataset dataset
           
protected  double dataSize
           
protected  InvService service
           
protected  ServiceType type
           
protected  String urlPath
           
 
Constructor Summary
InvAccess()
           
 
Method Summary
 DataFormatType getDataFormatType()
           
 InvDataset getDataset()
           
 double getDataSize()
           
 InvService getService()
           
 URI getStandardUri()
          Construct the standard THREDDS access URI for this dataset access method, resolve if the URI is relative.
 String getStandardUrlName()
          Get the standard URL, with resolution if the URL is reletive.
 String getUnresolvedUrlName()
          Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix().
 String getUrlPath()
           
 String getWrappedUrlName()
           
 boolean hasDataSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataset

protected InvDataset dataset

type

protected ServiceType type

dataFormat

protected DataFormatType dataFormat

service

protected InvService service

urlPath

protected String urlPath

dataSize

protected double dataSize
Constructor Detail

InvAccess

public InvAccess()
Method Detail

getDataset

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

getService

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

getUrlPath

public String getUrlPath()
Returns:
the urlPath. Should not be null.

getDataFormatType

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

getDataSize

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

hasDataSize

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

getStandardUrlName

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

Returns:
URL string, or null if error.

getWrappedUrlName

public String getWrappedUrlName()

getStandardUri

public 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 String getUnresolvedUrlName()
Construct "unresolved" URL: service.getBase() + getUrlPath() + service.getSuffix(). It is not resolved, so it may be a reletive URL.

Returns:
Unresolved Url as a String


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.