Tabnine Logo
BasicService.getCodeBase
Code IndexAdd Tabnine to your IDE (free)

How to use
getCodeBase
method
in
javax.jnlp.BasicService

Best Java code snippets using javax.jnlp.BasicService.getCodeBase (Showing top 9 results out of 315)

origin: org.jbundle.util/org.jbundle.util.muffinmanager

/**
 * Get the Java WebStart codebase.
 * @return The codebase.
 */
public URL getCodeBase()
{
  if (m_bs != null)
    return m_bs.getCodeBase();
  return null;
}
/**
origin: stackoverflow.com

 final BasicService bs = (BasicService) ServiceManager.lookup(
  "javax.jnlp.BasicService");
final URL codeBase = bs.getCodeBase();
origin: stackoverflow.com

 import javax.jnlp.*;

BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
URL codebase = bs.getCodeBase();
origin: org.jdesktop.bsaf/bsaf

private URL fileNameToURL(String name) throws IOException {
  if (name == null) {
    throw new IOException("name is not set");
  }
  try {
    return new URL(bs.getCodeBase(), name);
  } catch (MalformedURLException e) {
    throw new IOException("invalid filename \"" + name + "\"", e);
  }
}
origin: net.java.dev.appframework/appframework

private URL fileNameToURL(String name) throws IOException {
  try {
  return new URL(bs.getCodeBase(), name);
  }
  catch (MalformedURLException e) {
  throw new LSException("invalid filename \"" + name + "\"", e);
  }
}
origin: org.jbundle.util/org.jbundle.util.muffinmanager

/**
 * Creates new MuffinManager.
 * @param applet The parent object (ignored).
 */
public void init(Object applet)
{
  try {
    m_ps = (PersistenceService)ServiceManager.lookup("javax.jnlp.PersistenceService");
    m_bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
    m_strCodeBase = m_bs.getCodeBase().toString();
  } catch (UnavailableServiceException e) {
    m_ps = null;
    m_bs = null;
  }
}
/**
origin: org.slick2d/slick2d-core

BasicService bs = (BasicService) ServiceManager
    .lookup("javax.jnlp.BasicService");
URL baseURL = bs.getCodeBase();
URL configURL = new URL(baseURL, fileName);
FileContents fc = ps.get(configURL);
origin: org.slick2d/slick2d-core

bs = (BasicService) ServiceManager
    .lookup("javax.jnlp.BasicService");
URL baseURL = bs.getCodeBase();
origin: org.jvnet.hudson/netx

  url = new File(location).toURL(); // Why use file.getCanonicalFile?
else 
  url = new URL(ServiceUtil.getBasicService().getCodeBase(), location);
javax.jnlpBasicServicegetCodeBase

Popular methods of BasicService

  • showDocument

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JTextField (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now