Search in sources :

Example 1 with BasicService

use of javax.jnlp.BasicService in project adempiere by adempiere.

the class Adempiere method getCodeBase.

//  setSupportEMail
/**
	 * 	Get JNLP CodeBase
	 *	@return code base or null
	 */
public static URL getCodeBase() {
    try {
        BasicService bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
        URL url = bs.getCodeBase();
        return url;
    } catch (UnavailableServiceException ue) {
        return null;
    }
}
Also used : BasicService(javax.jnlp.BasicService) UnavailableServiceException(javax.jnlp.UnavailableServiceException) URL(java.net.URL)

Example 2 with BasicService

use of javax.jnlp.BasicService in project adempiere by adempiere.

the class Ini method getCodeBase.

/**
	 * 	Get JNLP CodeBase
	 *	@return code base or null
	 */
public static URL getCodeBase() {
    try {
        BasicService bs = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
        URL url = bs.getCodeBase();
        return url;
    } catch (UnavailableServiceException ue) {
        return null;
    }
}
Also used : BasicService(javax.jnlp.BasicService) UnavailableServiceException(javax.jnlp.UnavailableServiceException) URL(java.net.URL)

Aggregations

URL (java.net.URL)2 BasicService (javax.jnlp.BasicService)2 UnavailableServiceException (javax.jnlp.UnavailableServiceException)2