Package org.apache.directory.api.ldap.model.message

Examples of org.apache.directory.api.ldap.model.message.SearchResultReferenceImpl


     * Tests for equal hashCode when an exact copy is compared.
     */
    @Test
    public void testHashCodeExactCopy()
    {
        SearchResultReferenceImpl resp0 = new SearchResultReferenceImpl( 5 );
        getReferral( resp0 );
        SearchResultReferenceImpl resp1 = new SearchResultReferenceImpl( 5 );
        getReferral( resp1 );

        assertTrue( resp0.hashCode() == resp1.hashCode() );
    }
View Full Code Here


     * Tests for inequality when the urls are not the same.
     */
    @Test
    public void testNotEqualDiffUrls()
    {
        SearchResultReferenceImpl resp0 = new SearchResultReferenceImpl( 5 );
        getReferral( resp0 );
        SearchResultReferenceImpl resp1 = new SearchResultReferenceImpl( 5 );
        getReferral( resp1 );
        resp1.getReferral().addLdapUrl( "ldap://asdf.com???" );

        assertFalse( "different urls should not be equal", resp1.equals( resp0 ) );
        assertFalse( "different urls should not be equal", resp0.equals( resp1 ) );
    }
View Full Code Here

        if ( ( ref != null ) && !hasManageDsaItControl )
        {
            // The entry is a referral.
            SearchResultReference respRef;
            respRef = new SearchResultReferenceImpl( req.getMessageId() );
            respRef.setReferral( new ReferralImpl() );

            for ( Value<?> val : ref )
            {
                String url = val.getString();
View Full Code Here

        if ( ( ref != null ) && !hasManageDsaItControl )
        {
            // The entry is a referral.
            SearchResultReference respRef;
            respRef = new SearchResultReferenceImpl( req.getMessageId() );
            respRef.setReferral( new ReferralImpl() );

            for ( Value<?> val : ref )
            {
                String url = val.getString();
View Full Code Here

    /**
     * Creates a new getDecoratedMessage() of SearchResultReferenceDsml.
     */
    public SearchResultReferenceDsml( LdapApiService codec )
    {
        super( codec, new SearchResultReferenceImpl() );
    }
View Full Code Here

     */
    public void action( LdapMessageContainer<SearchResultReferenceDecorator> container ) throws DecoderException
    {
        // Now, we can allocate the SearchResultReference Object
        SearchResultReferenceDecorator searchResultReference = new SearchResultReferenceDecorator(
            container.getLdapCodecService(), new SearchResultReferenceImpl( container.getMessageId() ) );
        container.setMessage( searchResultReference );

        LOG.debug( "SearchResultReference response " );
    }
View Full Code Here

        if ( ( ref != null ) && !hasManageDsaItControl )
        {
            // The entry is a referral.
            SearchResultReference respRef;
            respRef = new SearchResultReferenceImpl( req.getMessageId() );
            respRef.setReferral( new ReferralImpl() );

            for ( Value<?> val : ref )
            {
                String url = val.getString();
View Full Code Here

        if ( ( ref != null ) && !hasManageDsaItControl )
        {
            // The entry is a referral.
            SearchResultReference respRef;
            respRef = new SearchResultReferenceImpl( req.getMessageId() );
            respRef.setReferral( new ReferralImpl() );

            for ( Value<?> val : ref )
            {
                String url = val.getString();
View Full Code Here

        if ( ( ref != null ) && !hasManageDsaItControl )
        {
            // The entry is a referral.
            SearchResultReference respRef;
            respRef = new SearchResultReferenceImpl( req.getMessageId() );
            respRef.setReferral( new ReferralImpl() );

            for ( Value<?> val : ref )
            {
                String url = val.getString();
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.model.message.SearchResultReferenceImpl

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.