Package org.apache.directory.server.core.entry

Examples of org.apache.directory.server.core.entry.ServerBinaryValue


            {
                List<Value<?>> binaries = new ArrayList<Value<?>>();

                for ( Value<?> value : attribute )
                {
                    binaries.add( new ServerBinaryValue( ( ( ServerAttribute ) attribute ).getAttributeType(),
                        value.getBytes() ) );
                }

                attribute.clear();
                attribute.put( binaries );
View Full Code Here


        }
        else
        {
            if ( value instanceof String )
            {
                val = new ServerBinaryValue( attributeType, StringTools.getBytesUtf8( (String)value ) );
            }
            else if ( value instanceof byte[] )
            {
                val = new ServerBinaryValue( attributeType, (byte[])value );
            }
            else
            {
                throw new NamingException( "Bad value for the OID " + oid );
            }
View Full Code Here

            {
                value = new ServerStringValue( newRdnAttrType, (String)unEscapedRdn );
            }
            else
            {
                value = new ServerBinaryValue( newRdnAttrType, (byte[])unEscapedRdn );
            }
           
            value.normalize();
           
            entry.add( newRdnAttrType, value );
View Full Code Here

        }
        else
        {
            if ( value instanceof String )
            {
                val = new ServerBinaryValue( attributeType, StringTools.getBytesUtf8( (String)value ) );
            }
            else if ( value instanceof byte[] )
            {
                val = new ServerBinaryValue( attributeType, (byte[])value );
            }
            else
            {
                throw new NamingException( I18n.err( I18n.ERR_309, oid ) );
            }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.entry.ServerBinaryValue

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.