directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r379008 [5/11] - in /directory/trunks/shared: ./ asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/grammar/ asn1/src/m...
Date Mon, 20 Feb 2006 03:36:53 GMT
Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java Sun Feb 19 19:35:07 2006
@@ -1,363 +1,363 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-import org.apache.directory.shared.ldap.util.ArrayUtils;
-import org.apache.directory.shared.ldap.util.StringTools;
-
-
-/**
- * Bind protocol operation request which authenticates and begins a client
- * session. Does not yet contain interfaces for SASL authentication mechanisms.
- * 
- * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
- * @version $Rev$
- */
-public class BindRequestImpl extends AbstractRequest implements BindRequest
-{
-    static final long serialVersionUID = 7945504184130380071L;
-
-    /**
-     * Distinguished name identifying the name of the authenticating subject -
-     * defaults to the empty string
-     */
-    private String name = "";
-
-    /** The passwords, keys or tickets used to verify user identity */
-    private byte[] credentials;
-
-    /** The mechanism used to decode user identity */
-    private String mechanism;
-
-    /** Simple vs. SASL authentication mode flag */
-    private boolean isSimple = true;
-
-    /** Bind behavoir exhibity by protocol version */
-    private boolean isVersion3 = true;
-
-    public BindResponse response;
-
-
-    // ------------------------------------------------------------------------
-    // Constructors
-    // ------------------------------------------------------------------------
-
-    /**
-     * Creates an BindRequest implementation to bind to an LDAP server.
-     * 
-     * @param id
-     *            the sequence identifier of the BindRequest message.
-     */
-    public BindRequestImpl(final int id)
-    {
-        super( id, TYPE, true );
-    }
-
-
-    // -----------------------------------------------------------------------
-    // BindRequest Interface Method Implementations
-    // -----------------------------------------------------------------------
-
-    /**
-     * Checks to see if the authentication mechanism is simple and not SASL
-     * based.
-     * 
-     * @return true if the mechanism is simple false if it is SASL based.
-     */
-    public boolean isSimple()
-    {
-        return isSimple;
-    }
-
-
-    /**
-     * Checks to see if the authentication mechanism is simple and not SASL
-     * based.
-     * 
-     * @return true if the mechanism is simple false if it is SASL based.
-     */
-    public boolean getSimple()
-    {
-        return isSimple;
-    }
-
-
-    /**
-     * Sets the authentication mechanism to simple or to SASL based
-     * authentication.
-     * 
-     * @param isSimple
-     *            true if authentication is simple, false otherwise.
-     */
-    public void setSimple( boolean isSimple )
-    {
-        this.isSimple = isSimple;
-    }
-
-
-    /**
-     * Gets the simple credentials associated with a simple authentication
-     * attempt or null if this request uses SASL authentication mechanisms.
-     * 
-     * @return null if the mechanism is SASL or the credentials if it is simple.
-     */
-    public byte[] getCredentials()
-    {
-        return credentials;
-    }
-
-
-    /**
-     * Sets the simple credentials associated with a simple authentication
-     * attempt ignored if this request uses SASL authentication mechanisms.
-     * 
-     * @param credentials
-     *            the credentials if authentication is simple, null otherwise
-     */
-    public void setCredentials( byte[] credentials )
-    {
-        this.credentials = credentials;
-    }
-
-
-    /**
-     * Gets the mechanism if this request uses SASL authentication mechanisms.
-     * 
-     * @return The mechanism if SASL.
-     */
-    public String getSaslMechanism()
-    {
-        return mechanism;
-    }
-
-
-    /**
-     * Sets the mechanism associated with a SASL authentication
-     * 
-     * @param mechanism
-     *            the mechanism otherwise
-     */
-    public void setSaslMechanism( String mechanism )
-    {
-        this.mechanism = mechanism;
-    }
-
-
-    /**
-     * Gets the distinguished name of the subject in this authentication
-     * request. This field may take on a null value (a zero length string) for
-     * the purposes of anonymous binds, when authentication has been performed
-     * at a lower layer, or when using SASL credentials with a mechanism that
-     * includes the LDAPDN in the credentials.
-     * 
-     * @return the DN of the authenticating user.
-     */
-    public String getName()
-    {
-        return name;
-    }
-
-
-    /**
-     * Sets the distinguished name of the subject in this authentication
-     * request. This field may take on a null value (or a zero length string)
-     * for the purposes of anonymous binds, when authentication has been
-     * performed at a lower layer, or when using SASL credentials with a
-     * mechanism that includes the LDAPDN in the credentials.
-     * 
-     * @param name
-     *            the DN of the authenticating user - leave null for annonymous
-     *            user.
-     */
-    public void setName( String name )
-    {
-        this.name = name;
-    }
-
-
-    /**
-     * Checks to see if the Ldap v3 protocol is used. Normally this would
-     * extract a version number from the bind request sent by the client
-     * indicating the version of the protocol to be used in this protocol
-     * session. The integer is either a 2 or a 3 at the moment. We thought it
-     * was better to just check if the protocol used is 3 or not rather than use
-     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
-     * then we shall convert the return type to a type safe enumeration.
-     * 
-     * @return true if client using version 3 false if it is version 2.
-     */
-    public boolean isVersion3()
-    {
-        return isVersion3;
-    }
-
-
-    /**
-     * Gets whether or not the Ldap v3 protocol is used. Normally this would
-     * extract a version number from the bind request sent by the client
-     * indicating the version of the protocol to be used in this protocol
-     * session. The integer is either a 2 or a 3 at the moment. We thought it
-     * was better to just check if the protocol used is 3 or not rather than use
-     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
-     * then we shall convert the return type to a type safe enumeration.
-     * 
-     * @return true if client using version 3 false if it is version 2.
-     */
-    public boolean getVersion3()
-    {
-        return isVersion3;
-    }
-
-
-    /**
-     * Sets whether or not the LDAP v3 or v2 protocol is used. Normally this
-     * would extract a version number from the bind request sent by the client
-     * indicating the version of the protocol to be used in this protocol
-     * session. The integer is either a 2 or a 3 at the moment. We thought it
-     * was better to just check if the protocol used is 3 or not rather than use
-     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
-     * then we shall convert the return type to a type safe enumeration.
-     * 
-     * @param isVersion3
-     *            if true the client will be exhibiting version 3 bind behavoir,
-     *            if false is used version 2 behavoir will be exhibited.
-     */
-    public void setVersion3( boolean isVersion3 )
-    {
-        this.isVersion3 = isVersion3;
-    }
-
-
-    // -----------------------------------------------------------------------
-    // BindRequest Interface Method Implementations
-    // -----------------------------------------------------------------------
-
-    /**
-     * Gets the protocol response message type for this request which produces
-     * at least one response.
-     * 
-     * @return the message type of the response.
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return RESP_TYPE;
-    }
-
-
-    /**
-     * The result containing response for this request.
-     * 
-     * @return the result containing response for this request
-     */
-    public ResultResponse getResultResponse()
-    {
-        if ( response == null )
-        {
-            response = new BindResponseImpl( getMessageId() );
-        }
-
-        return response;
-    }
-
-
-    public boolean equals( Object obj )
-    {
-        if ( obj == this )
-        {
-            return true;
-        }
-
-        if ( !super.equals( obj ) )
-        {
-            return false;
-        }
-
-        BindRequest req = ( BindRequest ) obj;
-
-        if ( req.isSimple() != isSimple() )
-        {
-            return false;
-        }
-
-        if ( req.isVersion3() != isVersion3() )
-        {
-            return false;
-        }
-
-        if ( !req.getName().equals( getName() ) )
-        {
-            return false;
-        }
-
-        if ( !ArrayUtils.isEquals( req.getCredentials(), getCredentials() ) )
-        {
-            return false;
-        }
-
-        return true;
-    }
-
-
-    /**
-     * Get a String representation of a BindRequest
-     * 
-     * @return A BindRequest String
-     */
-    public String toString()
-    {
-        StringBuffer sb = new StringBuffer();
-        sb.append( "    BindRequest\n" );
-        sb.append( "        Version : '" ).append( isVersion3 ? "3" : "2" ).append( "'\n" );
-
-        if ( StringTools.isEmpty( name.toString() ) )
-        {
-            sb.append( "        Name : anonymous\n" );
-        }
-        else
-        {
-            sb.append( "        Name : '" ).append( name.toString() ).append( "'\n" );
-
-            if ( isSimple )
-            {
-                sb.append( "        Simple authentication : '" ).append( StringTools.utf8ToString( credentials ) )
-                    .append( '/' ).append( StringTools.dumpBytes( credentials ) ).append( "'\n" );
-            }
-            else
-            {
-                sb.append( "        Sasl credentials\n" );
-                sb.append( "            Mechanism :'" ).append( mechanism ).append( "'\n" );
-
-                sb.append( "            Credentials : '" ).append( StringTools.utf8ToString( credentials ) ).append(
-                    '/' ).append( StringTools.dumpBytes( credentials ) ).append( "'\n" );
-            }
-        }
-
-        return sb.toString();
-    }
-
-
-    /**
-     * RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations
-     * cannot be abandoned.
-     */
-    public void abandon()
-    {
-        throw new UnsupportedOperationException(
-            "RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. " );
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+import org.apache.directory.shared.ldap.util.ArrayUtils;
+import org.apache.directory.shared.ldap.util.StringTools;
+
+
+/**
+ * Bind protocol operation request which authenticates and begins a client
+ * session. Does not yet contain interfaces for SASL authentication mechanisms.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class BindRequestImpl extends AbstractRequest implements BindRequest
+{
+    static final long serialVersionUID = 7945504184130380071L;
+
+    /**
+     * Distinguished name identifying the name of the authenticating subject -
+     * defaults to the empty string
+     */
+    private String name = "";
+
+    /** The passwords, keys or tickets used to verify user identity */
+    private byte[] credentials;
+
+    /** The mechanism used to decode user identity */
+    private String mechanism;
+
+    /** Simple vs. SASL authentication mode flag */
+    private boolean isSimple = true;
+
+    /** Bind behavoir exhibity by protocol version */
+    private boolean isVersion3 = true;
+
+    public BindResponse response;
+
+
+    // ------------------------------------------------------------------------
+    // Constructors
+    // ------------------------------------------------------------------------
+
+    /**
+     * Creates an BindRequest implementation to bind to an LDAP server.
+     * 
+     * @param id
+     *            the sequence identifier of the BindRequest message.
+     */
+    public BindRequestImpl(final int id)
+    {
+        super( id, TYPE, true );
+    }
+
+
+    // -----------------------------------------------------------------------
+    // BindRequest Interface Method Implementations
+    // -----------------------------------------------------------------------
+
+    /**
+     * Checks to see if the authentication mechanism is simple and not SASL
+     * based.
+     * 
+     * @return true if the mechanism is simple false if it is SASL based.
+     */
+    public boolean isSimple()
+    {
+        return isSimple;
+    }
+
+
+    /**
+     * Checks to see if the authentication mechanism is simple and not SASL
+     * based.
+     * 
+     * @return true if the mechanism is simple false if it is SASL based.
+     */
+    public boolean getSimple()
+    {
+        return isSimple;
+    }
+
+
+    /**
+     * Sets the authentication mechanism to simple or to SASL based
+     * authentication.
+     * 
+     * @param isSimple
+     *            true if authentication is simple, false otherwise.
+     */
+    public void setSimple( boolean isSimple )
+    {
+        this.isSimple = isSimple;
+    }
+
+
+    /**
+     * Gets the simple credentials associated with a simple authentication
+     * attempt or null if this request uses SASL authentication mechanisms.
+     * 
+     * @return null if the mechanism is SASL or the credentials if it is simple.
+     */
+    public byte[] getCredentials()
+    {
+        return credentials;
+    }
+
+
+    /**
+     * Sets the simple credentials associated with a simple authentication
+     * attempt ignored if this request uses SASL authentication mechanisms.
+     * 
+     * @param credentials
+     *            the credentials if authentication is simple, null otherwise
+     */
+    public void setCredentials( byte[] credentials )
+    {
+        this.credentials = credentials;
+    }
+
+
+    /**
+     * Gets the mechanism if this request uses SASL authentication mechanisms.
+     * 
+     * @return The mechanism if SASL.
+     */
+    public String getSaslMechanism()
+    {
+        return mechanism;
+    }
+
+
+    /**
+     * Sets the mechanism associated with a SASL authentication
+     * 
+     * @param mechanism
+     *            the mechanism otherwise
+     */
+    public void setSaslMechanism( String mechanism )
+    {
+        this.mechanism = mechanism;
+    }
+
+
+    /**
+     * Gets the distinguished name of the subject in this authentication
+     * request. This field may take on a null value (a zero length string) for
+     * the purposes of anonymous binds, when authentication has been performed
+     * at a lower layer, or when using SASL credentials with a mechanism that
+     * includes the LDAPDN in the credentials.
+     * 
+     * @return the DN of the authenticating user.
+     */
+    public String getName()
+    {
+        return name;
+    }
+
+
+    /**
+     * Sets the distinguished name of the subject in this authentication
+     * request. This field may take on a null value (or a zero length string)
+     * for the purposes of anonymous binds, when authentication has been
+     * performed at a lower layer, or when using SASL credentials with a
+     * mechanism that includes the LDAPDN in the credentials.
+     * 
+     * @param name
+     *            the DN of the authenticating user - leave null for annonymous
+     *            user.
+     */
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+
+    /**
+     * Checks to see if the Ldap v3 protocol is used. Normally this would
+     * extract a version number from the bind request sent by the client
+     * indicating the version of the protocol to be used in this protocol
+     * session. The integer is either a 2 or a 3 at the moment. We thought it
+     * was better to just check if the protocol used is 3 or not rather than use
+     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
+     * then we shall convert the return type to a type safe enumeration.
+     * 
+     * @return true if client using version 3 false if it is version 2.
+     */
+    public boolean isVersion3()
+    {
+        return isVersion3;
+    }
+
+
+    /**
+     * Gets whether or not the Ldap v3 protocol is used. Normally this would
+     * extract a version number from the bind request sent by the client
+     * indicating the version of the protocol to be used in this protocol
+     * session. The integer is either a 2 or a 3 at the moment. We thought it
+     * was better to just check if the protocol used is 3 or not rather than use
+     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
+     * then we shall convert the return type to a type safe enumeration.
+     * 
+     * @return true if client using version 3 false if it is version 2.
+     */
+    public boolean getVersion3()
+    {
+        return isVersion3;
+    }
+
+
+    /**
+     * Sets whether or not the LDAP v3 or v2 protocol is used. Normally this
+     * would extract a version number from the bind request sent by the client
+     * indicating the version of the protocol to be used in this protocol
+     * session. The integer is either a 2 or a 3 at the moment. We thought it
+     * was better to just check if the protocol used is 3 or not rather than use
+     * an type-safe enumeration type for a binary value. If an LDAPv4 comes out
+     * then we shall convert the return type to a type safe enumeration.
+     * 
+     * @param isVersion3
+     *            if true the client will be exhibiting version 3 bind behavoir,
+     *            if false is used version 2 behavoir will be exhibited.
+     */
+    public void setVersion3( boolean isVersion3 )
+    {
+        this.isVersion3 = isVersion3;
+    }
+
+
+    // -----------------------------------------------------------------------
+    // BindRequest Interface Method Implementations
+    // -----------------------------------------------------------------------
+
+    /**
+     * Gets the protocol response message type for this request which produces
+     * at least one response.
+     * 
+     * @return the message type of the response.
+     */
+    public MessageTypeEnum getResponseType()
+    {
+        return RESP_TYPE;
+    }
+
+
+    /**
+     * The result containing response for this request.
+     * 
+     * @return the result containing response for this request
+     */
+    public ResultResponse getResultResponse()
+    {
+        if ( response == null )
+        {
+            response = new BindResponseImpl( getMessageId() );
+        }
+
+        return response;
+    }
+
+
+    public boolean equals( Object obj )
+    {
+        if ( obj == this )
+        {
+            return true;
+        }
+
+        if ( !super.equals( obj ) )
+        {
+            return false;
+        }
+
+        BindRequest req = ( BindRequest ) obj;
+
+        if ( req.isSimple() != isSimple() )
+        {
+            return false;
+        }
+
+        if ( req.isVersion3() != isVersion3() )
+        {
+            return false;
+        }
+
+        if ( !req.getName().equals( getName() ) )
+        {
+            return false;
+        }
+
+        if ( !ArrayUtils.isEquals( req.getCredentials(), getCredentials() ) )
+        {
+            return false;
+        }
+
+        return true;
+    }
+
+
+    /**
+     * Get a String representation of a BindRequest
+     * 
+     * @return A BindRequest String
+     */
+    public String toString()
+    {
+        StringBuffer sb = new StringBuffer();
+        sb.append( "    BindRequest\n" );
+        sb.append( "        Version : '" ).append( isVersion3 ? "3" : "2" ).append( "'\n" );
+
+        if ( StringTools.isEmpty( name.toString() ) )
+        {
+            sb.append( "        Name : anonymous\n" );
+        }
+        else
+        {
+            sb.append( "        Name : '" ).append( name.toString() ).append( "'\n" );
+
+            if ( isSimple )
+            {
+                sb.append( "        Simple authentication : '" ).append( StringTools.utf8ToString( credentials ) )
+                    .append( '/' ).append( StringTools.dumpBytes( credentials ) ).append( "'\n" );
+            }
+            else
+            {
+                sb.append( "        Sasl credentials\n" );
+                sb.append( "            Mechanism :'" ).append( mechanism ).append( "'\n" );
+
+                sb.append( "            Credentials : '" ).append( StringTools.utf8ToString( credentials ) ).append(
+                    '/' ).append( StringTools.dumpBytes( credentials ) ).append( "'\n" );
+            }
+        }
+
+        return sb.toString();
+    }
+
+
+    /**
+     * RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations
+     * cannot be abandoned.
+     */
+    public void abandon()
+    {
+        throw new UnsupportedOperationException(
+            "RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. " );
+    }
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java Sun Feb 19 19:35:07 2006
@@ -1,53 +1,53 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Bind protocol response message used to confirm the results of a bind request
- * message. BindResponse consists simply of an indication from the server of the
- * status of the client's request for authentication.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public interface BindResponse extends ResultResponse
-{
-    /** Bind response message type enumeration value */
-    MessageTypeEnum TYPE = MessageTypeEnum.BINDRESPONSE;
-
-
-    /**
-     * Gets the optional property holding SASL authentication response paramters
-     * that are SASL mechanism specific. Will return null if the authentication
-     * is simple.
-     * 
-     * @return the sasl mech. specific credentials or null of auth. is simple
-     */
-    byte[] getServerSaslCreds();
-
-
-    /**
-     * Sets the optional property holding SASL authentication response paramters
-     * that are SASL mechanism specific. Leave null if authentication mode is
-     * simple.
-     * 
-     * @param a_serverSaslCreds
-     *            the sasl auth. mech. specific credentials
-     */
-    void setServerSaslCreds( byte[] a_serverSaslCreds );
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Bind protocol response message used to confirm the results of a bind request
+ * message. BindResponse consists simply of an indication from the server of the
+ * status of the client's request for authentication.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface BindResponse extends ResultResponse
+{
+    /** Bind response message type enumeration value */
+    MessageTypeEnum TYPE = MessageTypeEnum.BINDRESPONSE;
+
+
+    /**
+     * Gets the optional property holding SASL authentication response paramters
+     * that are SASL mechanism specific. Will return null if the authentication
+     * is simple.
+     * 
+     * @return the sasl mech. specific credentials or null of auth. is simple
+     */
+    byte[] getServerSaslCreds();
+
+
+    /**
+     * Sets the optional property holding SASL authentication response paramters
+     * that are SASL mechanism specific. Leave null if authentication mode is
+     * simple.
+     * 
+     * @param a_serverSaslCreds
+     *            the sasl auth. mech. specific credentials
+     */
+    void setServerSaslCreds( byte[] a_serverSaslCreds );
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponseImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java Sun Feb 19 19:35:07 2006
@@ -1,96 +1,96 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Compare request protocol message that tests an entry to see if it abides by
- * an attribute value assertion.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface CompareRequest extends SingleReplyRequest, AbandonableRequest
-{
-    /** Compare request message type enum code */
-    MessageTypeEnum TYPE = MessageTypeEnum.COMPAREREQUEST;
-
-    /** Compare response message type enum code */
-    MessageTypeEnum RESP_TYPE = CompareResponse.TYPE;
-
-
-    /**
-     * Gets the distinguished name of the entry to be compared using the
-     * attribute value assertion.
-     * 
-     * @return the DN of the compared entry.
-     */
-    String getName();
-
-
-    /**
-     * Sets the distinguished name of the entry to be compared using the
-     * attribute value assertion.
-     * 
-     * @param a_name
-     *            the DN of the compared entry.
-     */
-    void setName( String a_name );
-
-
-    /**
-     * Gets the attribute value to use in making the comparison.
-     * 
-     * @return the attribute value to used in comparison.
-     */
-    byte[] getAssertionValue();
-
-
-    /**
-     * Sets the attribute value to use in the comparison.
-     * 
-     * @param a_value
-     *            the attribute value used in comparison.
-     */
-    void setAssertionValue( String a_value );
-
-
-    /**
-     * Sets the attribute value to use in the comparison.
-     * 
-     * @param a_value
-     *            the attribute value used in comparison.
-     */
-    void setAssertionValue( byte[] value );
-
-
-    /**
-     * Gets the attribute id use in making the comparison.
-     * 
-     * @return the attribute id used in comparison.
-     */
-    String getAttributeId();
-
-
-    /**
-     * Sets the attribute id used in the comparison.
-     * 
-     * @param a_attrId
-     *            the attribute id used in comparison.
-     */
-    void setAttributeId( String a_attrId );
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Compare request protocol message that tests an entry to see if it abides by
+ * an attribute value assertion.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface CompareRequest extends SingleReplyRequest, AbandonableRequest
+{
+    /** Compare request message type enum code */
+    MessageTypeEnum TYPE = MessageTypeEnum.COMPAREREQUEST;
+
+    /** Compare response message type enum code */
+    MessageTypeEnum RESP_TYPE = CompareResponse.TYPE;
+
+
+    /**
+     * Gets the distinguished name of the entry to be compared using the
+     * attribute value assertion.
+     * 
+     * @return the DN of the compared entry.
+     */
+    String getName();
+
+
+    /**
+     * Sets the distinguished name of the entry to be compared using the
+     * attribute value assertion.
+     * 
+     * @param a_name
+     *            the DN of the compared entry.
+     */
+    void setName( String a_name );
+
+
+    /**
+     * Gets the attribute value to use in making the comparison.
+     * 
+     * @return the attribute value to used in comparison.
+     */
+    byte[] getAssertionValue();
+
+
+    /**
+     * Sets the attribute value to use in the comparison.
+     * 
+     * @param a_value
+     *            the attribute value used in comparison.
+     */
+    void setAssertionValue( String a_value );
+
+
+    /**
+     * Sets the attribute value to use in the comparison.
+     * 
+     * @param a_value
+     *            the attribute value used in comparison.
+     */
+    void setAssertionValue( byte[] value );
+
+
+    /**
+     * Gets the attribute id use in making the comparison.
+     * 
+     * @return the attribute id used in comparison.
+     */
+    String getAttributeId();
+
+
+    /**
+     * Sets the attribute id used in the comparison.
+     * 
+     * @param a_attrId
+     *            the attribute id used in comparison.
+     */
+    void setAttributeId( String a_attrId );
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java Sun Feb 19 19:35:07 2006
@@ -1,279 +1,279 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-import java.util.Arrays;
-
-import org.apache.directory.shared.ldap.util.StringTools;
-
-
-/**
- * Lockable comparison request implementation.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public class CompareRequestImpl extends AbstractAbandonableRequest implements CompareRequest
-{
-    static final long serialVersionUID = 1699731530016468977L;
-
-    /** Distinguished name identifying the compared entry */
-    private String name;
-
-    /** The id of the attribute used in the comparison */
-    private String attrId;
-
-    /** The value of the attribute used in the comparison */
-    private byte[] attrVal;
-
-    private CompareResponse response;
-
-
-    // ------------------------------------------------------------------------
-    // Constructors
-    // ------------------------------------------------------------------------
-
-    /**
-     * Creates an CompareRequest implementation to compare a named entry with an
-     * attribute value assertion pair.
-     * 
-     * @param id
-     *            the sequence identifier of the CompareRequest message.
-     */
-    public CompareRequestImpl(final int id)
-    {
-        super( id, TYPE );
-    }
-
-
-    // ------------------------------------------------------------------------
-    // ComparisonRequest Interface Method Implementations
-    // ------------------------------------------------------------------------
-
-    /**
-     * Gets the distinguished name of the entry to be compared using the
-     * attribute value assertion.
-     * 
-     * @return the DN of the compared entry.
-     */
-    public String getName()
-    {
-        return name;
-    }
-
-
-    /**
-     * Sets the distinguished name of the entry to be compared using the
-     * attribute value assertion.
-     * 
-     * @param name
-     *            the DN of the compared entry.
-     */
-    public void setName( String name )
-    {
-        this.name = name;
-    }
-
-
-    /**
-     * Gets the attribute value to use in making the comparison.
-     * 
-     * @return the attribute value to used in comparison.
-     */
-    public byte[] getAssertionValue()
-    {
-        return attrVal;
-    }
-
-
-    /**
-     * Sets the attribute value to use in the comparison.
-     * 
-     * @param attrVal
-     *            the attribute value used in comparison.
-     */
-    public void setAssertionValue( String attrVal )
-    {
-        this.attrVal = StringTools.getBytesUtf8( attrVal );
-    }
-
-
-    /**
-     * Sets the attribute value to use in the comparison.
-     * 
-     * @param attrVal
-     *            the attribute value used in comparison.
-     */
-    public void setAssertionValue( byte[] attrVal )
-    {
-        this.attrVal = attrVal;
-    }
-
-
-    /**
-     * Gets the attribute id use in making the comparison.
-     * 
-     * @return the attribute id used in comparison.
-     */
-    public String getAttributeId()
-    {
-        return attrId;
-    }
-
-
-    /**
-     * Sets the attribute id used in the comparison.
-     * 
-     * @param attrId
-     *            the attribute id used in comparison.
-     */
-    public void setAttributeId( String attrId )
-    {
-        this.attrId = attrId;
-    }
-
-
-    // ------------------------------------------------------------------------
-    // SingleReplyRequest Interface Method Implementations
-    // ------------------------------------------------------------------------
-
-    /**
-     * Gets the protocol response message type for this request which produces
-     * at least one response.
-     * 
-     * @return the message type of the response.
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return RESP_TYPE;
-    }
-
-
-    /**
-     * The result containing response for this request.
-     * 
-     * @return the result containing response for this request
-     */
-    public ResultResponse getResultResponse()
-    {
-        if ( response == null )
-        {
-            response = new CompareResponseImpl( getMessageId() );
-        }
-
-        return response;
-    }
-
-
-    /**
-     * Checks to see if an object is equivalent to this CompareRequest.
-     * 
-     * @param obj
-     *            the obj to compare with this CompareRequest
-     * @return true if the obj is equal to this request, false otherwise
-     */
-    public boolean equals( Object obj )
-    {
-        if ( obj == this )
-        {
-            return true;
-        }
-
-        if ( !super.equals( obj ) )
-        {
-            return false;
-        }
-
-        CompareRequest req = ( CompareRequest ) obj;
-
-        if ( name != null && req.getName() == null )
-        {
-            return false;
-        }
-
-        if ( name == null && req.getName() != null )
-        {
-            return false;
-        }
-
-        if ( name != null && req.getName() != null )
-        {
-            if ( !name.equals( req.getName() ) )
-            {
-                return false;
-            }
-        }
-
-        if ( attrId != null && req.getAttributeId() == null )
-        {
-            return false;
-        }
-
-        if ( attrId == null && req.getAttributeId() != null )
-        {
-            return false;
-        }
-
-        if ( attrId != null && req.getAttributeId() != null )
-        {
-            if ( !attrId.equals( req.getAttributeId() ) )
-            {
-                return false;
-            }
-        }
-
-        if ( attrVal != null && req.getAssertionValue() == null )
-        {
-            return false;
-        }
-
-        if ( attrVal == null && req.getAssertionValue() != null )
-        {
-            return false;
-        }
-
-        if ( attrVal != null && req.getAssertionValue() != null )
-        {
-            if ( !Arrays.equals( attrVal, req.getAssertionValue() ) )
-            {
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-
-    /**
-     * Get a String representation of a Compare Request
-     * 
-     * @return A Compare Request String
-     */
-    public String toString()
-    {
-        StringBuffer sb = new StringBuffer();
-
-        sb.append( "    Compare request\n" );
-        sb.append( "        Entry : '" ).append( name.toString() ).append( "'\n" );
-        sb.append( "        Attribute description : '" ).append( attrId ).append( "'\n" );
-        sb.append( "        Attribute value : '" ).append( StringTools.utf8ToString( attrVal ) ).append( '/' ).append(
-            StringTools.dumpBytes( attrVal ) ).append( "'\n" );
-
-        return sb.toString();
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+import java.util.Arrays;
+
+import org.apache.directory.shared.ldap.util.StringTools;
+
+
+/**
+ * Lockable comparison request implementation.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class CompareRequestImpl extends AbstractAbandonableRequest implements CompareRequest
+{
+    static final long serialVersionUID = 1699731530016468977L;
+
+    /** Distinguished name identifying the compared entry */
+    private String name;
+
+    /** The id of the attribute used in the comparison */
+    private String attrId;
+
+    /** The value of the attribute used in the comparison */
+    private byte[] attrVal;
+
+    private CompareResponse response;
+
+
+    // ------------------------------------------------------------------------
+    // Constructors
+    // ------------------------------------------------------------------------
+
+    /**
+     * Creates an CompareRequest implementation to compare a named entry with an
+     * attribute value assertion pair.
+     * 
+     * @param id
+     *            the sequence identifier of the CompareRequest message.
+     */
+    public CompareRequestImpl(final int id)
+    {
+        super( id, TYPE );
+    }
+
+
+    // ------------------------------------------------------------------------
+    // ComparisonRequest Interface Method Implementations
+    // ------------------------------------------------------------------------
+
+    /**
+     * Gets the distinguished name of the entry to be compared using the
+     * attribute value assertion.
+     * 
+     * @return the DN of the compared entry.
+     */
+    public String getName()
+    {
+        return name;
+    }
+
+
+    /**
+     * Sets the distinguished name of the entry to be compared using the
+     * attribute value assertion.
+     * 
+     * @param name
+     *            the DN of the compared entry.
+     */
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+
+    /**
+     * Gets the attribute value to use in making the comparison.
+     * 
+     * @return the attribute value to used in comparison.
+     */
+    public byte[] getAssertionValue()
+    {
+        return attrVal;
+    }
+
+
+    /**
+     * Sets the attribute value to use in the comparison.
+     * 
+     * @param attrVal
+     *            the attribute value used in comparison.
+     */
+    public void setAssertionValue( String attrVal )
+    {
+        this.attrVal = StringTools.getBytesUtf8( attrVal );
+    }
+
+
+    /**
+     * Sets the attribute value to use in the comparison.
+     * 
+     * @param attrVal
+     *            the attribute value used in comparison.
+     */
+    public void setAssertionValue( byte[] attrVal )
+    {
+        this.attrVal = attrVal;
+    }
+
+
+    /**
+     * Gets the attribute id use in making the comparison.
+     * 
+     * @return the attribute id used in comparison.
+     */
+    public String getAttributeId()
+    {
+        return attrId;
+    }
+
+
+    /**
+     * Sets the attribute id used in the comparison.
+     * 
+     * @param attrId
+     *            the attribute id used in comparison.
+     */
+    public void setAttributeId( String attrId )
+    {
+        this.attrId = attrId;
+    }
+
+
+    // ------------------------------------------------------------------------
+    // SingleReplyRequest Interface Method Implementations
+    // ------------------------------------------------------------------------
+
+    /**
+     * Gets the protocol response message type for this request which produces
+     * at least one response.
+     * 
+     * @return the message type of the response.
+     */
+    public MessageTypeEnum getResponseType()
+    {
+        return RESP_TYPE;
+    }
+
+
+    /**
+     * The result containing response for this request.
+     * 
+     * @return the result containing response for this request
+     */
+    public ResultResponse getResultResponse()
+    {
+        if ( response == null )
+        {
+            response = new CompareResponseImpl( getMessageId() );
+        }
+
+        return response;
+    }
+
+
+    /**
+     * Checks to see if an object is equivalent to this CompareRequest.
+     * 
+     * @param obj
+     *            the obj to compare with this CompareRequest
+     * @return true if the obj is equal to this request, false otherwise
+     */
+    public boolean equals( Object obj )
+    {
+        if ( obj == this )
+        {
+            return true;
+        }
+
+        if ( !super.equals( obj ) )
+        {
+            return false;
+        }
+
+        CompareRequest req = ( CompareRequest ) obj;
+
+        if ( name != null && req.getName() == null )
+        {
+            return false;
+        }
+
+        if ( name == null && req.getName() != null )
+        {
+            return false;
+        }
+
+        if ( name != null && req.getName() != null )
+        {
+            if ( !name.equals( req.getName() ) )
+            {
+                return false;
+            }
+        }
+
+        if ( attrId != null && req.getAttributeId() == null )
+        {
+            return false;
+        }
+
+        if ( attrId == null && req.getAttributeId() != null )
+        {
+            return false;
+        }
+
+        if ( attrId != null && req.getAttributeId() != null )
+        {
+            if ( !attrId.equals( req.getAttributeId() ) )
+            {
+                return false;
+            }
+        }
+
+        if ( attrVal != null && req.getAssertionValue() == null )
+        {
+            return false;
+        }
+
+        if ( attrVal == null && req.getAssertionValue() != null )
+        {
+            return false;
+        }
+
+        if ( attrVal != null && req.getAssertionValue() != null )
+        {
+            if ( !Arrays.equals( attrVal, req.getAssertionValue() ) )
+            {
+                return false;
+            }
+        }
+
+        return true;
+    }
+
+
+    /**
+     * Get a String representation of a Compare Request
+     * 
+     * @return A Compare Request String
+     */
+    public String toString()
+    {
+        StringBuffer sb = new StringBuffer();
+
+        sb.append( "    Compare request\n" );
+        sb.append( "        Entry : '" ).append( name.toString() ).append( "'\n" );
+        sb.append( "        Attribute description : '" ).append( attrId ).append( "'\n" );
+        sb.append( "        Attribute value : '" ).append( StringTools.utf8ToString( attrVal ) ).append( '/' ).append(
+            StringTools.dumpBytes( attrVal ) ).append( "'\n" );
+
+        return sb.toString();
+    }
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java Sun Feb 19 19:35:07 2006
@@ -1,31 +1,31 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Compare protocol response message used to confirm the results of a compare
- * request message.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface CompareResponse extends ResultResponse
-{
-    /** Compare response message type enumeration value */
-    MessageTypeEnum TYPE = MessageTypeEnum.COMPARERESPONSE;
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Compare protocol response message used to confirm the results of a compare
+ * request message.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface CompareResponse extends ResultResponse
+{
+    /** Compare response message type enumeration value */
+    MessageTypeEnum TYPE = MessageTypeEnum.COMPARERESPONSE;
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Control.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Control.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ControlImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java Sun Feb 19 19:35:07 2006
@@ -1,53 +1,53 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Delete request protocol message used to remove an existing leaf entry from
- * the directory.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface DeleteRequest extends SingleReplyRequest, AbandonableRequest
-{
-    /** Delete request message type enumeration value */
-    MessageTypeEnum TYPE = MessageTypeEnum.DELREQUEST;
-
-    /** Delete response message type enumeration value */
-    MessageTypeEnum RESP_TYPE = DeleteResponse.TYPE;
-
-
-    /**
-     * Gets the distinguished name of the leaf entry to be deleted by this
-     * request.
-     * 
-     * @return the DN of the leaf entry to delete.
-     */
-    String getName();
-
-
-    /**
-     * Sets the distinguished name of the leaf entry to be deleted by this
-     * request.
-     * 
-     * @param a_name
-     *            the DN of the leaf entry to delete.
-     */
-    void setName( String a_name );
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Delete request protocol message used to remove an existing leaf entry from
+ * the directory.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface DeleteRequest extends SingleReplyRequest, AbandonableRequest
+{
+    /** Delete request message type enumeration value */
+    MessageTypeEnum TYPE = MessageTypeEnum.DELREQUEST;
+
+    /** Delete response message type enumeration value */
+    MessageTypeEnum RESP_TYPE = DeleteResponse.TYPE;
+
+
+    /**
+     * Gets the distinguished name of the leaf entry to be deleted by this
+     * request.
+     * 
+     * @return the DN of the leaf entry to delete.
+     */
+    String getName();
+
+
+    /**
+     * Sets the distinguished name of the leaf entry to be deleted by this
+     * request.
+     * 
+     * @param a_name
+     *            the DN of the leaf entry to delete.
+     */
+    void setName( String a_name );
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java Sun Feb 19 19:35:07 2006
@@ -1,176 +1,176 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Delete request implementation.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public class DeleteRequestImpl extends AbstractAbandonableRequest implements DeleteRequest
-{
-    static final long serialVersionUID = 3187847454305567542L;
-
-    /** The distinguished name of the entry to delete */
-    private String name;
-
-    private DeleteResponse response;
-
-
-    // ------------------------------------------------------------------------
-    // Constructors
-    // ------------------------------------------------------------------------
-
-    /**
-     * Creates a Lockable DeleteRequest implementing object used to delete a
-     * leaf entry from the DIT.
-     * 
-     * @param id
-     *            the sequential message identifier
-     */
-    public DeleteRequestImpl(final int id)
-    {
-        super( id, TYPE );
-    }
-
-
-    // ------------------------------------------------------------------------
-    // DeleteRequest Interface Method Implementations
-    // ------------------------------------------------------------------------
-
-    /**
-     * Gets the distinguished name of the leaf entry to be deleted by this
-     * request.
-     * 
-     * @return the DN of the leaf entry to delete.
-     */
-    public String getName()
-    {
-        return name;
-    }
-
-
-    /**
-     * Sets the distinguished name of the leaf entry to be deleted by this
-     * request.
-     * 
-     * @param name
-     *            the DN of the leaf entry to delete.
-     */
-    public void setName( String name )
-    {
-        this.name = name;
-    }
-
-
-    // ------------------------------------------------------------------------
-    // SingleReplyRequest Interface Method Implementations
-    // ------------------------------------------------------------------------
-
-    /**
-     * Gets the protocol response message type for this request which produces
-     * at least one response.
-     * 
-     * @return the message type of the response.
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return RESP_TYPE;
-    }
-
-
-    /**
-     * The result containing response for this request.
-     * 
-     * @return the result containing response for this request
-     */
-    public ResultResponse getResultResponse()
-    {
-        if ( response == null )
-        {
-            response = new DeleteResponseImpl( getMessageId() );
-        }
-
-        return response;
-    }
-
-
-    /**
-     * Checks to see if an object is equivalent to this DeleteRequest. First
-     * there's a quick test to see if the obj is the same object as this one -
-     * if so true is returned. Next if the super method fails false is returned.
-     * Then the name of the entry is compared - if not the same false is
-     * returned. Finally the method exists returning true.
-     * 
-     * @param obj
-     *            the object to test for equality to this
-     * @return true if the obj is equal to this DeleteRequest, false otherwise
-     */
-    public boolean equals( Object obj )
-    {
-        if ( this == obj )
-        {
-            return true;
-        }
-
-        if ( !super.equals( obj ) )
-        {
-            return false;
-        }
-
-        DeleteRequest req = ( DeleteRequest ) obj;
-
-        if ( name != null && req.getName() == null )
-        {
-            return false;
-        }
-
-        if ( name == null && req.getName() != null )
-        {
-            return false;
-        }
-
-        if ( name != null && req.getName() != null )
-        {
-            if ( !name.equals( req.getName() ) )
-            {
-                return false;
-            }
-        }
-
-        return true;
-    }
-
-
-    /**
-     * Return a String representing a DelRequest
-     * 
-     * @return A DelRequest String
-     */
-    public String toString()
-    {
-
-        StringBuffer sb = new StringBuffer();
-
-        sb.append( "    Del request\n" );
-        sb.append( "        Entry : '" ).append( name.toString() ).append( "'\n" );
-
-        return sb.toString();
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Delete request implementation.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class DeleteRequestImpl extends AbstractAbandonableRequest implements DeleteRequest
+{
+    static final long serialVersionUID = 3187847454305567542L;
+
+    /** The distinguished name of the entry to delete */
+    private String name;
+
+    private DeleteResponse response;
+
+
+    // ------------------------------------------------------------------------
+    // Constructors
+    // ------------------------------------------------------------------------
+
+    /**
+     * Creates a Lockable DeleteRequest implementing object used to delete a
+     * leaf entry from the DIT.
+     * 
+     * @param id
+     *            the sequential message identifier
+     */
+    public DeleteRequestImpl(final int id)
+    {
+        super( id, TYPE );
+    }
+
+
+    // ------------------------------------------------------------------------
+    // DeleteRequest Interface Method Implementations
+    // ------------------------------------------------------------------------
+
+    /**
+     * Gets the distinguished name of the leaf entry to be deleted by this
+     * request.
+     * 
+     * @return the DN of the leaf entry to delete.
+     */
+    public String getName()
+    {
+        return name;
+    }
+
+
+    /**
+     * Sets the distinguished name of the leaf entry to be deleted by this
+     * request.
+     * 
+     * @param name
+     *            the DN of the leaf entry to delete.
+     */
+    public void setName( String name )
+    {
+        this.name = name;
+    }
+
+
+    // ------------------------------------------------------------------------
+    // SingleReplyRequest Interface Method Implementations
+    // ------------------------------------------------------------------------
+
+    /**
+     * Gets the protocol response message type for this request which produces
+     * at least one response.
+     * 
+     * @return the message type of the response.
+     */
+    public MessageTypeEnum getResponseType()
+    {
+        return RESP_TYPE;
+    }
+
+
+    /**
+     * The result containing response for this request.
+     * 
+     * @return the result containing response for this request
+     */
+    public ResultResponse getResultResponse()
+    {
+        if ( response == null )
+        {
+            response = new DeleteResponseImpl( getMessageId() );
+        }
+
+        return response;
+    }
+
+
+    /**
+     * Checks to see if an object is equivalent to this DeleteRequest. First
+     * there's a quick test to see if the obj is the same object as this one -
+     * if so true is returned. Next if the super method fails false is returned.
+     * Then the name of the entry is compared - if not the same false is
+     * returned. Finally the method exists returning true.
+     * 
+     * @param obj
+     *            the object to test for equality to this
+     * @return true if the obj is equal to this DeleteRequest, false otherwise
+     */
+    public boolean equals( Object obj )
+    {
+        if ( this == obj )
+        {
+            return true;
+        }
+
+        if ( !super.equals( obj ) )
+        {
+            return false;
+        }
+
+        DeleteRequest req = ( DeleteRequest ) obj;
+
+        if ( name != null && req.getName() == null )
+        {
+            return false;
+        }
+
+        if ( name == null && req.getName() != null )
+        {
+            return false;
+        }
+
+        if ( name != null && req.getName() != null )
+        {
+            if ( !name.equals( req.getName() ) )
+            {
+                return false;
+            }
+        }
+
+        return true;
+    }
+
+
+    /**
+     * Return a String representing a DelRequest
+     * 
+     * @return A DelRequest String
+     */
+    public String toString()
+    {
+
+        StringBuffer sb = new StringBuffer();
+
+        sb.append( "    Del request\n" );
+        sb.append( "        Entry : '" ).append( name.toString() ).append( "'\n" );
+
+        return sb.toString();
+    }
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java Sun Feb 19 19:35:07 2006
@@ -1,31 +1,31 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Delete protocol response message used to confirm the results of a delete
- * request message.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface DeleteResponse extends ResultResponse
-{
-    /** Delete response message type enumeration value */
-    MessageTypeEnum TYPE = MessageTypeEnum.DELRESPONSE;
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Delete protocol response message used to confirm the results of a delete
+ * request message.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface DeleteResponse extends ResultResponse
+{
+    /** Delete response message type enumeration value */
+    MessageTypeEnum TYPE = MessageTypeEnum.DELRESPONSE;
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponseImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DerefAliasesEnum.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DerefAliasesEnum.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/EntryChangeControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/EntryChangeControl.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java Sun Feb 19 19:35:07 2006
@@ -1,97 +1,97 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.shared.ldap.message;
-
-
-/**
- * Extended protocol request message used to add to more operations to the
- * protocol. Here's what <a href="http://www.faqs.org/rfcs/rfc2251.html"> RFC
- * 2251</a> says about it:
- * 
- * <pre>
- *  4.12. Extended Operation
- * 
- *   An extension mechanism has been added in this version of LDAP, in
- *   order to allow additional operations to be defined for services not
- *   available elsewhere in this protocol, for instance digitally signed
- *   operations and results.
- * 
- *   The extended operation allows clients to make requests and receive
- *   responses with predefined syntaxes and semantics.  These may be
- *   defined in RFCs or be private to particular implementations.  Each
- *   request MUST have a unique OBJECT IDENTIFIER assigned to it.
- * 
- *        ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
- *                requestName      [0] LDAPOID,
- *                requestValue     [1] OCTET STRING OPTIONAL }
- * 
- *   The requestName is a dotted-decimal representation of the OBJECT
- *   IDENTIFIER corresponding to the request. The requestValue is
- *   information in a form defined by that request, encapsulated inside an
- *   OCTET STRING.
- *  &lt;pre&gt;
- * <br>
- *  
- *  @author &lt;a href=&quot;mailto:dev@directory.apache.org&quot;&gt;Apache Directory Project&lt;/a&gt;
- *  @version $Revision$
- * 
- */
-public interface ExtendedRequest extends SingleReplyRequest, javax.naming.ldap.ExtendedRequest
-{
-    /** Extended request message type enumeration value */
-    MessageTypeEnum TYPE = MessageTypeEnum.EXTENDEDREQ;
-
-    /** Extended response message type enumeration value */
-    MessageTypeEnum RESP_TYPE = ExtendedResponse.TYPE;
-
-
-    /**
-     * Gets the Object Idendifier corresponding to the extended request type.
-     * This is the <b>requestName</b> portion of the ext. req. PDU.
-     * 
-     * @return the dotted-decimal representation as a String of the OID
-     */
-    String getOid();
-
-
-    /**
-     * Sets the Object Idendifier corresponding to the extended request type.
-     * 
-     * @param oid
-     *            the dotted-decimal representation as a String of the OID
-     */
-    void setOid( String oid );
-
-
-    /**
-     * Gets the extended request's <b>requestValue</b> portion of the PDU. The
-     * form of the data is request specific and is determined by the extended
-     * request OID.
-     * 
-     * @return byte array of data
-     */
-    byte[] getPayload();
-
-
-    /**
-     * Sets the extended request's <b>requestValue</b> portion of the PDU.
-     * 
-     * @param payload
-     *            byte array of data encapsulating ext. req. parameters
-     */
-    void setPayload( byte[] payload );
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.shared.ldap.message;
+
+
+/**
+ * Extended protocol request message used to add to more operations to the
+ * protocol. Here's what <a href="http://www.faqs.org/rfcs/rfc2251.html"> RFC
+ * 2251</a> says about it:
+ * 
+ * <pre>
+ *  4.12. Extended Operation
+ * 
+ *   An extension mechanism has been added in this version of LDAP, in
+ *   order to allow additional operations to be defined for services not
+ *   available elsewhere in this protocol, for instance digitally signed
+ *   operations and results.
+ * 
+ *   The extended operation allows clients to make requests and receive
+ *   responses with predefined syntaxes and semantics.  These may be
+ *   defined in RFCs or be private to particular implementations.  Each
+ *   request MUST have a unique OBJECT IDENTIFIER assigned to it.
+ * 
+ *        ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
+ *                requestName      [0] LDAPOID,
+ *                requestValue     [1] OCTET STRING OPTIONAL }
+ * 
+ *   The requestName is a dotted-decimal representation of the OBJECT
+ *   IDENTIFIER corresponding to the request. The requestValue is
+ *   information in a form defined by that request, encapsulated inside an
+ *   OCTET STRING.
+ *  &lt;pre&gt;
+ * <br>
+ *  
+ *  @author &lt;a href=&quot;mailto:dev@directory.apache.org&quot;&gt;Apache Directory Project&lt;/a&gt;
+ *  @version $Revision$
+ * 
+ */
+public interface ExtendedRequest extends SingleReplyRequest, javax.naming.ldap.ExtendedRequest
+{
+    /** Extended request message type enumeration value */
+    MessageTypeEnum TYPE = MessageTypeEnum.EXTENDEDREQ;
+
+    /** Extended response message type enumeration value */
+    MessageTypeEnum RESP_TYPE = ExtendedResponse.TYPE;
+
+
+    /**
+     * Gets the Object Idendifier corresponding to the extended request type.
+     * This is the <b>requestName</b> portion of the ext. req. PDU.
+     * 
+     * @return the dotted-decimal representation as a String of the OID
+     */
+    String getOid();
+
+
+    /**
+     * Sets the Object Idendifier corresponding to the extended request type.
+     * 
+     * @param oid
+     *            the dotted-decimal representation as a String of the OID
+     */
+    void setOid( String oid );
+
+
+    /**
+     * Gets the extended request's <b>requestValue</b> portion of the PDU. The
+     * form of the data is request specific and is determined by the extended
+     * request OID.
+     * 
+     * @return byte array of data
+     */
+    byte[] getPayload();
+
+
+    /**
+     * Sets the extended request's <b>requestValue</b> portion of the PDU.
+     * 
+     * @param payload
+     *            byte array of data encapsulating ext. req. parameters
+     */
+    void setPayload( byte[] payload );
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id



Mime
View raw message