|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.deploy.JnlpResourceLoader
public class JnlpResourceLoader
A dynamic loader of resources via the JNLP API.
Copyright (c) Formaria Ltd., 2008, 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 Formaria.
| Constructor Summary | |
|---|---|
JnlpResourceLoader(java.net.URL base)
Creates a new instance of JnlpResourceLoader |
|
| Method Summary | |
|---|---|
boolean |
loadResource(java.lang.String res,
java.lang.String version)
Load the specified resource, blocking till the download is complete |
boolean |
loadResource(java.lang.String res,
java.lang.String version,
boolean clear)
Load the specified resource, blocking till the download is complete |
void |
setBaseUrl(java.net.URL base)
Set the base URL for the download service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JnlpResourceLoader(java.net.URL base)
base - the basic URL to which resoruce names wil be appended| Method Detail |
|---|
public void setBaseUrl(java.net.URL base)
base - the basic URL to which resoruce names wil be appended
public boolean loadResource(java.lang.String res,
java.lang.String version)
res - the resource name. The name will be appended to the base url to
get the complete download URL.version - the version to download or null if the version is not used
public boolean loadResource(java.lang.String res,
java.lang.String version,
boolean clear)
res - the resource name. The name will be appended to the base url to
get the complete download URL.version - the version to download or null if the version is not usedclear - clear the cache before downloading. If this is true then the
resource will always be downloded, otherwise the cachced resource will be
returned if it is present.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||