directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <akaras...@apache.org>
Subject [Codec] Decorator not that simple
Date Tue, 25 Jan 2011 00:20:59 GMT
Seems we have many more package friendly methods that the encoder is
using in all the Message implementation classes. Like for
AddRequestImpl we have the following:

    /**
     * Stores the encoded length for the AddRequest
     * @param addRequestLength The encoded length
     */
    /* No qualifier*/void setAddRequestLength( int addRequestLength )
    {
        this.addRequestLength = addRequestLength;
    }


    /**
     * @return The encoded AddRequest's length
     */
    /* No qualifier */int getAddRequestLength()
    {
        return addRequestLength;
    }


    /**
     * Stores the encoded length for the Entry
     * @param entryLength The encoded length
     */
    /* No qualifier*/void setEntryLength( int entryLength )
    {
        this.entryLength = entryLength;
    }


    /**
     * @return The encoded Entry's length
     */
    /* No qualifier */int getEntryLength()
    {
        return entryLength;
    }


    /**
     * Stores the encoded length for the attributes
     * @param attributesLength The encoded length
     */
    /* No qualifier*/void setAttributesLength( List<Integer> attributesLength )
    {
        this.attributesLength = attributesLength;
    }


    /**
     * @return The encoded values length
     */
    /* No qualifier */List<Integer> getAttributesLength()
    {
        return attributesLength;
    }


    /**
     * Stores the encoded length for the values
     * @param valuesLength The encoded length
     */
    /* No qualifier*/void setValuesLength( List<Integer> valuesLength )
    {
        this.valuesLength = valuesLength;
    }


    /**
     * @return The encoded values length
     */
    /* No qualifier */List<Integer> getValuesLength()
    {
        return valuesLength;
    }

Looks like this simple attempt here [0] is not going to cut it.


[0] - http://svn.apache.org/viewvc?view=revision&revision=1063059

-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org
To set up a meeting with me: http://tungle.me/AlexKarasulu

Mime
View raw message