Package org.apache.directory.studio.connection.core

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


     * @param rootDSE the Root DSE
     * @return the corresponding server type or 'UNKNOWN'
     */
    public static ConnectionServerType detectServerType( IRootDSE rootDSE )
    {
        ConnectionServerType serverType = ConnectionServerType.UNKNOWN;

        IAttribute vnAttribute = rootDSE.getAttribute( "vendorName" ); //$NON-NLS-1$
        IAttribute vvAttribute = rootDSE.getAttribute( "vendorVersion" ); //$NON-NLS-1$

        if ( vnAttribute != null && vnAttribute.getStringValues().length > 0 && vvAttribute != null
View Full Code Here


        BaseWidgetUtils.createLabel( infoComposite, Messages.getString( "RootDSEPropertyPage.DirectoryType" ), 1 ); //$NON-NLS-1$
        Text typeText = BaseWidgetUtils.createWrappedLabeledText( infoComposite, "-", 1, 150 ); //$NON-NLS-1$
        if ( connection != null && connection.getRootDSE() != null )
        {
            // Try to detect LDAP server from RootDSE
            ConnectionServerType serverType = ServerTypeDetector.detectServerType( connection.getRootDSE() );
            if ( serverType != null )
            {
                switch ( serverType )
                {
                    case APACHEDS:
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.connection.core.ConnectionServerType

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.