2451
2451
this.vbox = new IVirtualBox((org.mozilla.interfaces.IVirtualBox) this.componentManager
2452
2452
.createInstanceByContractID("@virtualbox.org/VirtualBox;1",
2454
org.mozilla.interfaces.IVirtualBox.IVIRTUALBOX_IID));
2454
org.mozilla.interfaces.IVirtualBox.IVIRTUALBOX_IID));
2457
2457
public void connect(String url, String username, String passwd)
3394
3394
this.port = pool.getPort();
3396
3396
((BindingProvider)port).getRequestContext().
3397
put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
3398
String handle = port.iWebsessionManagerLogon(username, passwd);
3399
this.vbox = new IVirtualBox(handle, port);
3400
} catch (Throwable t) {
3401
if (this.port != null)
3397
put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
3398
String handle = port.iWebsessionManagerLogon(username, passwd);
3399
this.vbox = new IVirtualBox(handle, port);
3400
} catch (Throwable t) {
3401
if (this.port != null && pool != null) {
3402
3402
pool.releasePort(this.port);
3403
// we have to throw smth derived from RuntimeException
3404
throw new VBoxException(t, t.getMessage());
3405
// we have to throw smth derived from RuntimeException
3406
throw new VBoxException(t, t.getMessage());
3408
3410
public void connect(String url, String username, String passwd,
3409
3411
Map<String, Object> requestContext, Map<String, Object> responseContext)
3411
this.port = pool.getPort();
3414
((BindingProvider)port).getRequestContext();
3415
if (requestContext != null)
3416
((BindingProvider)port).getRequestContext().putAll(requestContext);
3418
if (responseContext != null)
3419
((BindingProvider)port).getResponseContext().putAll(responseContext);
3421
((BindingProvider)port).getRequestContext().
3413
this.port = pool.getPort();
3416
((BindingProvider)port).getRequestContext();
3417
if (requestContext != null)
3418
((BindingProvider)port).getRequestContext().putAll(requestContext);
3420
if (responseContext != null)
3421
((BindingProvider)port).getResponseContext().putAll(responseContext);
3423
((BindingProvider)port).getRequestContext().
3422
3424
put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
3423
3425
String handle = port.iWebsessionManagerLogon(username, passwd);
3424
3426
this.vbox = new IVirtualBox(handle, port);
3425
} catch (Throwable t) {
3426
if (this.port != null)
3427
pool.releasePort(port);
3428
// we have to throw smth derived from RuntimeException
3429
throw new VBoxException(t, t.getMessage());
3427
} catch (Throwable t) {
3428
if (this.port != null && pool != null) {
3429
pool.releasePort(this.port);
3432
// we have to throw smth derived from RuntimeException
3433
throw new VBoxException(t, t.getMessage());
3433
3437
public void disconnect()