| java.lang.Object com.xoetrope.deploy.XJnlpResourceLoader
XJnlpResourceLoader | public class XJnlpResourceLoader (Code) | | A dynamic loader of resources via the JNLP API.
Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|
Method Summary | |
public boolean | loadResource(String res, String version) Load the specified resource, blocking till the download is complete
Parameters: res - the resource name. | public boolean | loadResource(String res, String version, boolean clear) Load the specified resource, blocking till the download is complete
Parameters: res - the resource name. | public void | setBaseUrl(URL base) Set the base URL for the download service. |
XJnlpResourceLoader | public XJnlpResourceLoader(URL base)(Code) | | Creates a new instance of XJnlpResourceLoader
Parameters: base - the basic URL to which resoruce names wil be appended |
loadResource | public boolean loadResource(String res, String version)(Code) | | Load the specified resource, blocking till the download is complete
Parameters: res - the resource name. The name will be appended to the base url toget the complete download URL. Parameters: version - the version to download or null if the version is not used true if the download completes successfully. |
loadResource | public boolean loadResource(String res, String version, boolean clear)(Code) | | Load the specified resource, blocking till the download is complete
Parameters: res - the resource name. The name will be appended to the base url toget the complete download URL. Parameters: version - the version to download or null if the version is not used Parameters: clear - clear the cache before downloading. If this is true then the resource will always be downloded, otherwise the cachced resource will bereturned if it is present. true if the download completes successfully. |
setBaseUrl | public void setBaseUrl(URL base)(Code) | | Set the base URL for the download service.
Parameters: base - the basic URL to which resoruce names wil be appended |
|
|