*/
public void stream(XmldbURL xmldbURL, OutputStream os) throws IOException {
LOG.debug("Begin document download");
try {
final XmlRpcClient client = new XmlRpcClient();
final XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setEncoding("UTF-8");
config.setEnabledForExtensions(true);
config.setServerURL(new URL(xmldbURL.getXmlRpcURL()));
// Setup client client
if(xmldbURL.hasUserInfo()) {
config.setBasicUserName(xmldbURL.getUsername());
config.setBasicPassword(xmldbURL.getPassword());
}
client.setConfig(config);
// Setup xml serializer
final Hashtable<String, String> options = new Hashtable<String, String>();