Examples of Referral


Examples of org.apache.directory.studio.connection.core.io.jndi.ReferralsInfo.Referral

                List<LdapURL> urls = new ArrayList<LdapURL>();
                {
                    while ( referralsInfo.hasMoreReferrals() )
                    {
                        Referral referral = referralsInfo.getNextReferral();
                        for ( IJndiLogger logger : ConnectionCorePlugin.getDefault().getJndiLoggers() )
                        {
                            logger.logSearchResultReference( connection, referral, referralsInfo, requestNum, null );
                        }
                        urls.addAll( referral.getLdapURLs() );
                    }
                }


                public SearchResult nextElement()
                {
                    throw new UnsupportedOperationException( "Call next() instead of nextElement() !" );
                }


                public boolean hasMoreElements()
                {
                    throw new UnsupportedOperationException( "Call hasMore() instead of hasMoreElements() !" );
                }


                public SearchResult next() throws NamingException
                {
                    LdapURL url = urls.remove( 0 );
                    SearchResult searchResult = new SearchResult( url.getDn().getUpName(), null, new BasicAttributes(),
                        false );
                    searchResult.setNameInNamespace( url.getDn().getUpName() );
                    StudioSearchResult ssr = new StudioSearchResult( searchResult, null, false, url );
                    return ssr;
                }


                public boolean hasMore() throws NamingException
                {
                    return !urls.isEmpty();
                }


                public void close() throws NamingException
                {
                    urls.clear();
                    referralsInfo = null;
                }
            };
        }
        else if ( referralsHandlingMethod == ReferralHandlingMethod.FOLLOW )
        {
            Referral referral = referralsInfo.getNextReferral();
            for ( IJndiLogger logger : ConnectionCorePlugin.getDefault().getJndiLoggers() )
            {
                logger.logSearchResultReference( connection, referral, referralsInfo, requestNum, null );
            }

            LdapURL url = referral.getLdapURLs().get( 0 );
            Connection referralConnection = JNDIConnectionWrapper.getReferralConnection( referral, monitor, this );
            if ( referralConnection != null )
            {
                done = false;
                String referralSearchBase = url.getDn() != null && !url.getDn().isEmpty() ? url.getDn().getUpName()
View Full Code Here

Examples of org.damour.base.client.objects.Referral

    ((ServiceDefTarget) BaseServiceCache.getServiceUnsafe()).setServiceEntryPoint(BASE_SERVICE_PATH);

    GWT.runAsync(new RunAsyncCallback() {

      public void onSuccess() {
        Referral referral = new Referral();
        referral.referralURL = Document.get().getReferrer();
        if (StringUtils.isEmpty(referral.referralURL)) {
          referral.referralURL = Window.Location.getHref();
        }
        referral.url = Window.Location.getHref();
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.