public MasterBuildAgentTransportClient( URL serviceUrl, String login, String password )
throws Exception
{
Binder binder = ContinuumXmlRpcBinder.getInstance();
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.setUsername( login );
connectionInfo.setPassword( password );
connectionInfo.setTimeZone( TimeZone.getDefault() );
this.masterServerUrl = serviceUrl.toString();
try
{
master = binder.bind( MasterBuildAgentTransportService.class, serviceUrl, connectionInfo );
}
catch ( BindingException e )
{
log.error( "Can't bind service interface " + MasterBuildAgentTransportService.class.getName() + " to " +
serviceUrl.toExternalForm() + " using " + connectionInfo.getUsername() + ", " +
connectionInfo.getPassword(), e );
throw new Exception(
"Can't bind service interface " + MasterBuildAgentTransportService.class.getName() + " to " +
serviceUrl.toExternalForm() + " using " + connectionInfo.getUsername() + ", " +
connectionInfo.getPassword(), e );
}
}