Class WlHttpAssetRepository

  extended by org.jdesktop.wonderland.client.assetmgr.http.WlHttpAssetRepository
All Implemented Interfaces:

public class WlHttpAssetRepository
extends java.lang.Object
implements AssetRepository

The WlHttpAssetRepository implements the AssetRepository and represents a repository that serves assets via a web server through http.

Jordan Slott

Constructor Summary
WlHttpAssetRepository(java.lang.String baseURL, java.lang.String checksum)
          Constructor, takes the base URL associated with the repository.
Method Summary
 AssetStream openAssetStream(AssetURI assetURI)
          Attempts to open an input stream to the given asset.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public WlHttpAssetRepository(java.lang.String baseURL,
                             java.lang.String checksum)
Constructor, takes the base URL associated with the repository. It also takes the checksum currently cached, or null if not present.

Method Detail


public AssetStream openAssetStream(AssetURI assetURI)
Description copied from interface: AssetRepository
Attempts to open an input stream to the given asset. This method is responsible for checking whether the asset is already cached and the desired checksum (or other identity information) for the asset. It returns an AssetStream object in response, either containing the input stream, or whether the repository is invalid or whether the asset is already cached.

Specified by:
openAssetStream in interface AssetRepository
assetURI - The URI of the asset to load
An AssetStream object indicating the result

Open Wonderland -