Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Licensed to the Apache Software Foundation (ASF) under one
   *  or more contributor license agreements.  See the NOTICE file
   *  distributed with this work for additional information
   *  regarding copyright ownership.  The ASF licenses this file
   *  to you under the Apache License, Version 2.0 (the
   *  "License"); you may not use this file except in compliance
   *  with the License.  You may obtain a copy of the License at
   *  
  *    http://www.apache.org/licenses/LICENSE-2.0
  *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
  *  under the License. 
  *  
  */
 
 package org.apache.directory.studio.connection.core;
 
 
 import java.util.List;


This class contains all the properties that were detected for a connection during the first connection.

Author(s):
Apache Directory Project
 
 {
    
The key for the connection parameter "Vendor name"
 
     public static final String CONNECTION_PARAMETER_VENDOR_NAME = "detectedProperties.vendorName"//$NON-NLS-1$
 
    
The key for the connection parameter "Vendor version"
 
     public static final String CONNECTION_PARAMETER_VENDOR_VERSION = "detectedProperties.vendorVersion"//$NON-NLS-1$
 
    
The key for the connection parameter "Server type"
 
     public static final String CONNECTION_PARAMETER_SERVER_TYPE = "detectedProperties.serverType"//$NON-NLS-1$
 
    
The key for the connection parameter "Supported LDAP versions"
 
     public static final String CONNECTION_PARAMETER_SUPPORTED_LDAP_VERSIONS = "detectedProperties.supportedLdapVersions"//$NON-NLS-1$
 
    
The key for the connection parameter "Supported SASL mechanisms"
 
     public static final String CONNECTION_PARAMETER_SUPPORTED_SASL_MECHANISMS = "detectedProperties.supportedSaslMechanisms"//$NON-NLS-1$
 
    
The key for the connection parameter "Supported controls"
 
     public static final String CONNECTION_PARAMETER_SUPPORTED_CONTROLS = "detectedProperties.supportedControls"//$NON-NLS-1$
 
    
The key for the connection parameter "Supported extensions"
 
     public static final String CONNECTION_PARAMETER_SUPPORTED_EXTENSIONS = "detectedProperties.supportedExtensions"//$NON-NLS-1$
 
    
The key for the connection parameter "Supported features"
 
     public static final String CONNECTION_PARAMETER_SUPPORTED_FEATURES = "detectedProperties.supportedFeatures"//$NON-NLS-1$
 
    
The connection
 
     public Connection connection;


    
Creates a new instance of DetectedConnectionProperties.

Parameters:
connection the associated connection
 
     public DetectedConnectionPropertiesConnection connection )
     {
         this. = connection;
     }


    
Gets the server type.

Returns:
the server type
 
     {
         try
         {
             String serverType = .getConnectionParameter().getExtendedProperty(
                  );
 
             if ( serverType != null )
             {
                 return ConnectionServerType.valueOfserverType );
             }
             else
             {
                 return .;
             }
         }
         catch ( IllegalArgumentException e )
         {
             return .;
         }
     }


    
Gets the supported controls.

Returns:
the supported controls
    public List<StringgetSupportedControls()
    {
             );
    }


    
Gets the supported extensions.

Returns:
the supported extensions
    {
    }


    
Gets the supported features.

Returns:
the supported features
    public List<StringgetSupportedFeatures()
    {
             );
    }


    
Gets the supported LDAP versions.

Returns:
the supported LDAP versions
    {
    }


    
Gets the supported SASL mechanisms.

Returns:
the supported SASL mechanisms
    {
    }


    
Gets the vendor name.

Returns:
the vendor name
    public String getVendorName()
    {
    }


    
Gets the vendor version.

Returns:
the vendor version
    public String getVendorVersion()
    {
    }


    
Sets the server type.

Parameters:
serverType the server type
    public void setServerTypeObject serverType )
    {
            serverType.toString() );
    }


    
Sets the supported controls.

Parameters:
supportedControls the supported controls
    public void setSupportedControlsList<StringsupportedControls )
    {
            supportedControls );
    }


    
Sets the supported extensions.

Parameters:
supportedExtensions the supported extensions
    public void setSupportedExtensionsList<StringsupportedExtensions )
    {
            supportedExtensions );
    }


    
Sets the supported features.

Parameters:
supportedFeatures the supported features
    public void setSupportedFeaturesList<StringsupportedFeatures )
    {
            supportedFeatures );
    }


    
Sets the supported LDAP versions.

Parameters:
supportedLdapVersions the supported LDAP versions
    public void setSupportedLdapVersionsList<StringsupportedLdapVersions )
    {
            supportedLdapVersions );
    }


    
Sets the supported SASL mechanisms.

Parameters:
supportedSaslMechanisms the supported SASL mechanisms
    public void setSupportedSaslMechanismsList<StringsupportedSaslMechanisms )
    {
            supportedSaslMechanisms );
    }


    
Sets the vendor name.

Parameters:
vendorName the vendor name
    public void setVendorNameString vendorName )
    {
    }


    
Sets the vendor version.

Parameters:
vendorVersion the vendor version
    public void setVendorVersionString vendorVersion )
    {
    }
New to GrepCode? Check out our FAQ X