All pastes #544974 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-06 17:37 UTC
rendered paste body
If NetworkManager creates a new PlatformConfig and then you execute the following code
the proxyConfig does not get serialised to the PlatformConfig file:

ConfigParams advertisement = config.getPlatformConfig();
XMLDocument proxy = (XMLDocument) StructuredDocumentFactory.newStructuredDocument(MimeMediaType.XMLUTF8, "Parm");
proxy.appendChild(proxy.createElement("isOff"));
advertisement.putServiceParam(PeerGroup.proxyClassID, proxy);
config.proxyConfig = proxy;
config.save();