public String getFullUrl(String restUrl) {

        String result = "";

        try {
            result = (new URL(root.getConfig().getBaseUrl())).getProtocol() + "://" + this.getHost() + restUrl;
        } catch (Exception ex) {
        }

        return result;
    }
public String getFullUrl ( String restUrl ) { String result = "" ; try { result = ( new URL ( root . getConfig ( ) . getBaseUrl ( ) ) ) . getProtocol ( ) + "://" + this . getHost ( ) + restUrl ; } catch ( Exception ex ) { } return result ; }
Gets complete url.

@param restUrl Rest url.
@return Complete url.