public MasterBuildAgentTransportClient( URL serviceUrl, String login, String password )
throws Exception
{
Binder binder = new DefaultBinder();
AuthenticationInfo authnInfo = new AuthenticationInfo( login, password );
try
{
master = binder.bind( MasterBuildAgentTransportService.class, serviceUrl, authnInfo );
}
catch ( BindingException e )
{
log.error( "Can't bind service interface " + MasterBuildAgentTransportService.class.getName() + " to " +
serviceUrl.toExternalForm() + " using " + authnInfo.getUsername() + ", " + authnInfo.getPassword(), e );
throw new Exception(
"Can't bind service interface " + MasterBuildAgentTransportService.class.getName() + " to " +
serviceUrl.toExternalForm() + " using " + authnInfo.getUsername() + ", " + authnInfo.getPassword(),
e );
}
}