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

Constructor Index

 o RenamePersistentState(URL)
Constructor, makes active URLs absolute.
 o RenamePersistentState(URL, URL)
Constructor, you need to specify the URL to which all URLS are relative.

Method Index

 o getURL(String, String)
Get a URL.
 o setURL(String, String, String)
Set a URL.

Constructors

 o RenamePersistentState
  public RenamePersistentState(URL active)
Constructor, makes active URLs absolute.
 o RenamePersistentState
  public RenamePersistentState(URL active,
                               URL persistent)
Constructor, you need to specify the URL to which all URLS are relative.

Methods

 o 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
 o 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