.unregisterAnnouncement(lastInheritedAnnouncement
.getOwnerId());
}
HttpClient httpClient = new HttpClient();
final DeleteMethod method = new DeleteMethod(uri);
try {
String userInfo = connectorUrl.getUserInfo();
if (userInfo != null) {
Credentials c = new UsernamePasswordCredentials(userInfo);
httpClient.getState().setCredentials(
new AuthScope(method.getURI().getHost(), method
.getURI().getPort()), c);
}
requestValidator.trustMessage(method, null);
httpClient.executeMethod(method);
if (logger.isDebugEnabled()) {
logger.debug("disconnect: done. code=" + method.getStatusCode()
+ " - " + method.getStatusText());
}
// ignoring the actual statuscode though as there's little we can
// do about it after this point
} catch (URIException e) {
logger.warn("disconnect: Got URIException: " + e);
} catch (IOException e) {
logger.warn("disconnect: got IOException: " + e);
} catch (RuntimeException re) {
logger.error("disconnect: got RuntimeException: " + re, re);
} finally {
method.releaseConnection();
}
}