Package net.sourceforge.jnlp.config
Class InfrastructureFileDescriptor
java.lang.Object
net.sourceforge.jnlp.config.InfrastructureFileDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Remove garbage from paths.protected String
For documentation purposes, the descriptor may be created as VARIABLE/custom/path.getFile()
protected String
getFullPath
(DeploymentConfiguration config) overload version for control panel, which is saving to internal copy.protected String
setup-able files have to override this if they don't, they are read only, and set value will fail if it is desired to write value of property, then override and use known key.protected String
getUrl()
void
void
setValue
(String value, DeploymentConfiguration config) overload version for control panel, which is saving to internal copy.toString()
-
Constructor Details
-
InfrastructureFileDescriptor
protected InfrastructureFileDescriptor()
-
-
Method Details
-
getPropertiesKey
setup-able files have to override this if they don't, they are read only, and set value will fail if it is desired to write value of property, then override and use known key.- Returns:
- null by default. Should return key to configuration if overriden.
-
getFile
-
getUrl
- Throws:
MalformedURLException
-
setValue
-
getFullPath
-
setValue
overload version for control panel, which is saving to internal copy.- Parameters:
value
- new path of fileconfig
- config where t write this value (note, usually JNLPRuntime.getConfiguration() so you don't need it, but our config gui tool is using two sets to allow undo.
-
getFullPath
overload version for control panel, which is saving to internal copy.- Parameters:
config
- config from where to readthis value (note, usually JNLPRuntime.getConfiguration() so you don't need it, but our config gui tool is using two sets to allow undo.- Returns:
- configured property or default
-
getDefaultFile
-
getDefaultDir
-
getDefaultFullPath
-
getSystemPathStubAcronym
-
getFileName
-
getDescriptionKey
-
toString
-
getDirViaAcronym
For documentation purposes, the descriptor may be created as VARIABLE/custom/path. This is whole part, which is considered as setup-able.- Returns:
- directory acronym for nice docs
-
clean
Remove garbage from paths. Currently this methods unify all multiple occurrences of separators to single one. Eg /path/to//file will become /path/to/file. Those artifacts maybe spread during various s=path+deparator+subdir+separator file=s+separator+filename- Parameters:
s
- string to be cleaned- Returns:
- cleaned string
-
getDescription
- Returns:
- the translated description
-