for ( int i = 0; i < getReferrals().length; i++ )
{
// parse referral URL
String referral = getReferrals()[i];
URL referralUrl = new URL( referral );
// get referral connection
IBrowserConnection referralConnection = referralHandler.getReferralConnection( referralUrl );
if ( referralConnection == null )
{
// throw new
// ConnectionException(BrowserCoreMessages.model__no_referral_connection);
continue;
}
// create search
try
{
ISearch referralSearch = new Search(
null, //
referralConnection, //
referralUrl.hasDn() ? referralUrl.getDn() : originalSearchParameter.getSearchBase(), referralUrl
.hasFilter() ? referralUrl.getFilter() : originalSearchParameter.getFilter(),
originalSearchParameter.getReturningAttributes(), referralUrl.hasScope() ? referralUrl.getScope()
: originalSearchParameter.getScope(), originalSearchParameter.getCountLimit(),
originalSearchParameter.getTimeLimit(), originalSearchParameter.getAliasesDereferencingMethod(),
originalSearchParameter.getReferralsHandlingMethod(), originalSearchParameter.isInitHasChildrenFlag(),
originalSearchParameter.isInitAliasAndReferralFlag(), originalSearchParameter.getControls() );
referralSearchList.add( referralSearch );