public void setAsset(String path) {
        try {
            this.asset = new URL(path);
        } catch (MalformedURLException e) {
            e.printStackTrace();
            throw new RuntimeException("URL does not exist: " + path);

        }

    }
public void setAsset(String path) {
        try {
            this.asset = new URL(path);
        } catch (MalformedURLException e) {
            e.printStackTrace();
            throw new RuntimeException("URL does not exist: " + path);

        }

    }
public void setAsset ( String path ) { try { this . asset = new URL ( path ) ; } catch ( MalformedURLException e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "URL does not exist: " + path ) ; } }
Sets http http according to path.
It must exist as http.

@param path
Sets http http according to path . It must exist as http .