throws ResourceException {
super(principal);
if (info == null) {
throw new IllegalArgumentException("Argument 'info' is null");
}
final URI uri = info.getURI();
try {
_endpoint = new HTTPEndpoint(info);
} catch (IOException exception) {
_log.debug(exception, exception);
throw new ConnectException("Failed to connect to URI="
+ info.getURI(), exception);
}
_remoteURI = URIHelper.convertHostToAddress(uri);
try {
_localURI = URIHelper.create(uri.getScheme(), null, -1,
UUIDGenerator.create());
} catch (InvalidURIException exception) {
_log.debug(exception, exception);
throw new ResourceException("Failed to generate local URI",
exception);