Examples of IReferralHandler


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

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

    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

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

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( Referral referral, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( referral.getLdapURLs() );

            // open connection if not yet open
            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( url );

            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
                referralConnection.getJNDIConnectionWrapper().bind( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( url );

            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
                referralConnection.getJNDIConnectionWrapper().bind( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( url );

            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
                referralConnection.getJNDIConnectionWrapper().bind( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    public static Connection getReferralConnection( Referral referral, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler
                .getReferralConnection( new ArrayList<String>( referral.getLdapUrls() ) );

            // open connection if not yet open
            if ( referralConnection != null && !referralConnection.getConnectionWrapper().isConnected() )
            {
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( url );

            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
                referralConnection.getJNDIConnectionWrapper().bind( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.IReferralHandler

     * @return the referral connection
     */
    static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
    {
        Connection referralConnection = null;
        IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
        if ( referralHandler != null )
        {
            referralConnection = referralHandler.getReferralConnection( url );

            if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
            {
                referralConnection.getJNDIConnectionWrapper().connect( monitor );
                referralConnection.getJNDIConnectionWrapper().bind( monitor );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.