Package org.jdesktop.wonderland.common

Examples of org.jdesktop.wonderland.common.WlHttpURI


     */
    @Override
    public AssetRepository[] getAssetRepositories() {
        // Create the one asset repository for the base URL of the server
        AssetRepository[] assetRepositories = new AssetRepository[1];
        WlHttpURI uri = (WlHttpURI)getAssetURI();
        String baseURL = uri.getBaseURL();
        assetRepositories[0] = new WlHttpAssetRepository(baseURL, getDesiredChecksum());

        return assetRepositories;
    }
View Full Code Here


            return null;
        }

        // Otherwise, formulate the URL to open. We need to add the base url
        // of the repository to the relative path of the asset.
        WlHttpURI httpURI = (WlHttpURI)assetURI;
        String path = httpURI.getRelativePath();
        String url = AssetManager.encodeSpaces(baseURL + path);
        return url;
    }
View Full Code Here

   
    @Override
    public InputStream getInputStream() throws IOException {
        try {
            // First create a factory to handle the loading from a url
            WlHttpURI uri = new WlHttpURI(this.url.toExternalForm());

            // Next, we ask the asset manager for the asset and wait for it to
            // be loaded
            Asset asset = AssetManager.getAssetManager().getAsset(uri);
            if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.WlHttpURI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.