Class marimba.persist.RenamePersistentState
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.persist.RenamePersistentState
java.lang.Object
|
+----marimba.persist.PropertyList
|
+----marimba.persist.PersistentState
|
+----marimba.persist.RenamePersistentState
- public class RenamePersistentState
- extends PersistentState
This is a persistent state which renames the locations of
resources. It is exactly like a normal PersistentState,
except that it renames all relative URLs when needed.
- Version:
- 1.5, 11/29/96
- Author:
- Arthur van Hoff
-
RenamePersistentState(URL)
- Constructor, makes active URLs absolute.
-
RenamePersistentState(URL, URL)
- Constructor, you need to specify the URL to which all
URLS are relative.
-
getURL(String, String)
- Get a URL.
-
setURL(String, String, String)
- Set a URL.
RenamePersistentState
public RenamePersistentState(URL active)
- Constructor, makes active URLs absolute.
RenamePersistentState
public RenamePersistentState(URL active,
URL persistent)
- Constructor, you need to specify the URL to which all
URLS are relative.
setURL
public void setURL(String nm,
String val,
String def)
- Set a URL. If the URL is relative prepend the prefix.
- Overrides:
- setURL in class PersistentState
getURL
public String getURL(String nm,
String def)
- Get a URL. If the URL starts with the correct prefix then
make it relative.
- Overrides:
- getURL in class PersistentState
All Packages Class Hierarchy This Package Previous Next Index