Package org.apache.directory.ldapstudio.browser.core.model

Examples of org.apache.directory.ldapstudio.browser.core.model.IReferralHandler


                        if ( connection.getReferralsHandlingMethod() == IConnection.HANDLE_REFERRALS_FOLLOW )
                        {

                            // get referral handler
                            IReferralHandler referralHandler = BrowserCorePlugin.getDefault().getReferralHandler();
                            if ( referralHandler == null )
                            {
                                throw new ConnectionException( BrowserCoreMessages.model__no_referral_handler );
                            }

                            // for all referrals
                            ReferralException re = ( ReferralException ) ce;
                            for ( int r = 0; r < re.getReferrals().length; r++ )
                            {

                                // parse referral URL
                                String referral = re.getReferrals()[r];
                                URL referralUrl = new URL( referral );

                                // get referral connection
                                IConnection referralConnection = referralHandler.getReferralConnection( referralUrl );
                                if ( referralConnection == null )
                                {
                                    // throw new
                                    // ConnectionException(BrowserCoreMessages.model__no_referral_connection);
                                    continue;
View Full Code Here


    public ISearch[] getReferralSearches() throws ConnectionException
    {

        // get referral handler
        IReferralHandler referralHandler = BrowserCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler == null )
        {
            throw new ConnectionException( BrowserCoreMessages.model__no_referral_handler );
        }

        List referralSearchList = new ArrayList( getReferrals().length );

        for ( int i = 0; i < getReferrals().length; i++ )
        {

            // parse referral URL
            String referral = getReferrals()[i];
            URL referralUrl = new URL( referral );

            // get referral connection
            IConnection referralConnection = referralHandler.getReferralConnection( referralUrl );
            if ( referralConnection == null )
            {
                // throw new
                // ConnectionException(BrowserCoreMessages.model__no_referral_connection);
                continue;
View Full Code Here

                        if ( connection.getReferralsHandlingMethod() == IConnection.HANDLE_REFERRALS_FOLLOW )
                        {

                            // get referral handler
                            IReferralHandler referralHandler = BrowserCorePlugin.getDefault().getReferralHandler();
                            if ( referralHandler == null )
                            {
                                throw new ConnectionException( BrowserCoreMessages.model__no_referral_handler );
                            }

                            // for all referrals
                            ReferralException re = ( ReferralException ) ce;
                            for ( int r = 0; r < re.getReferrals().length; r++ )
                            {

                                // parse referral URL
                                String referral = re.getReferrals()[r];
                                URL referralUrl = new URL( referral );

                                // get referral connection
                                IConnection referralConnection = referralHandler.getReferralConnection( referralUrl );
                                if ( referralConnection == null )
                                {
                                    // throw new
                                    // ConnectionException(BrowserCoreMessages.model__no_referral_connection);
                                    continue;
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.model.IReferralHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.