Methods Summary |
---|
public static synchronized void | commitContentPrefixList()
if (r != null) {
r.set("PM.contentPrefixList", contentPrefixList);
try {
r.commit();
} catch (IOException ioe) {
System.err.println("Could not commit contentPrefixList");
}
}
|
public static synchronized void | commitProtocolPrefixList()
if (r != null) {
r.set("PM.protocolPrefixList", protocolPrefixList);
try {
r.commit();
} catch (IOException ioe) {
System.err.println("Could not commit protocolPrefixList");
}
}
|
public static synchronized java.util.Vector | getContentPrefixList()Content Prefix List
return contentPrefixList;
|
public static synchronized java.util.Vector | getProtocolPrefixList()Protocol Prefix List
// Set Defaults
protocolPrefixList = new Vector();
protocolPrefixList.addElement("javax");
protocolPrefixList.addElement("com.sun");
protocolPrefixList.addElement("com.ibm");
contentPrefixList = new Vector();
contentPrefixList.addElement("javax");
contentPrefixList.addElement("com.sun");
contentPrefixList.addElement("com.ibm");
try {
r = new Registry();
Vector temp = (Vector) r.get("PM.protocolPrefixList");
if (temp != null)
protocolPrefixList = temp;
temp = (Vector) r.get("PM.contentPrefixList");
if (temp != null)
contentPrefixList = temp;
} catch (Exception e) {
System.err.println("PackageManager: error reading registry");
}
return protocolPrefixList;
|
public static synchronized void | setContentPrefixList(java.util.Vector list)
contentPrefixList = list;
if (!contentPrefixList.contains("javax"))
contentPrefixList.addElement("javax");
|
public static synchronized void | setProtocolPrefixList(java.util.Vector list)
protocolPrefixList = list;
if (!protocolPrefixList.contains("javax"))
protocolPrefixList.addElement("javax");
|