You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/02/12 06:51:22 UTC
svn commit: r377135 [27/36] - in /directory/sandbox/akarasulu/rc1:
apacheds/core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/
apacheds/core-plugin/src/test/java/org/apache/directory/server/core/tools/schema/
apacheds/core-shared/...
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java Sat Feb 11 21:50:03 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/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/CompareResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Control.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Control.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ControlImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java Sat Feb 11 21:50:03 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/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java Sat Feb 11 21:50:03 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/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java Sat Feb 11 21:50:03 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/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponseImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DeleteResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DerefAliasesEnum.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/DerefAliasesEnum.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/EntryChangeControl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/EntryChangeControl.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java Sat Feb 11 21:50:03 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.
- * <pre>
- * <br>
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @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.
+ * <pre>
+ * <br>
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @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/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequestImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java Sat Feb 11 21:50:03 2006
@@ -1,67 +1,67 @@
-/*
- * 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 response message used to confirm the results of a extended
- * request message.
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface ExtendedResponse extends ResultResponse, javax.naming.ldap.ExtendedResponse
-{
- /** Extended response message type enumeration value */
- MessageTypeEnum TYPE = MessageTypeEnum.EXTENDEDRESP;
-
-
- /**
- * Gets the OID uniquely identifying this extended response (a.k.a. its
- * name).
- *
- * @return the OID of the extended response type.
- */
- String getResponseName();
-
-
- /**
- * Sets the OID uniquely identifying this extended response (a.k.a. its
- * name).
- *
- * @param oid
- * the OID of the extended response type.
- */
- void setResponseName( String oid );
-
-
- /**
- * Gets the reponse OID specific encoded response values.
- *
- * @return the response specific encoded response values.
- */
- byte[] getResponse();
-
-
- /**
- * Sets the reponse OID specific encoded response values.
- *
- * @param value
- * the response specific encoded response values.
- */
- void setResponse( byte[] value );
-}
+/*
+ * 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 response message used to confirm the results of a extended
+ * request message.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface ExtendedResponse extends ResultResponse, javax.naming.ldap.ExtendedResponse
+{
+ /** Extended response message type enumeration value */
+ MessageTypeEnum TYPE = MessageTypeEnum.EXTENDEDRESP;
+
+
+ /**
+ * Gets the OID uniquely identifying this extended response (a.k.a. its
+ * name).
+ *
+ * @return the OID of the extended response type.
+ */
+ String getResponseName();
+
+
+ /**
+ * Sets the OID uniquely identifying this extended response (a.k.a. its
+ * name).
+ *
+ * @param oid
+ * the OID of the extended response type.
+ */
+ void setResponseName( String oid );
+
+
+ /**
+ * Gets the reponse OID specific encoded response values.
+ *
+ * @return the response specific encoded response values.
+ */
+ byte[] getResponse();
+
+
+ /**
+ * Sets the reponse OID specific encoded response values.
+ *
+ * @param value
+ * the response specific encoded response values.
+ */
+ void setResponse( byte[] value );
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ExtendedResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java Sat Feb 11 21:50:03 2006
@@ -1,111 +1,111 @@
-/*
- * 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.
- *
- */
-
-/*
- * $Id: IteratorNamingEnumeration.java,v 1.2 2003/07/31 21:44:48 akarasulu Exp $
- *
- * -- (c) LDAPd Group --
- * -- Please refer to the LICENSE.txt file in the root directory of --
- * -- any LDAPd project for copyright and distribution information. --
- *
- */
-
-package org.apache.directory.shared.ldap.message;
-
-
-import java.util.Iterator;
-import javax.naming.NamingEnumeration;
-
-
-/**
- * A NamingEnumeration over an Iterator.
- *
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author <a href="mailto:jmachols@attbi.com">Jeff Machols</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public class IteratorNamingEnumeration implements NamingEnumeration
-{
- /** the iterator to wrap as in the enumeration */
- private final Iterator m_iterator;
-
-
- /**
- * Creates a NamingEnumeration over an Iterator.
- *
- * @param a_iterator
- * the Iterator the NamingEnumeration is based on.
- */
- public IteratorNamingEnumeration(final Iterator a_iterator)
- {
- m_iterator = a_iterator;
- }
-
-
- // --------------------------------------------------------------------
- // Enumeration Interface Method Implementations
- // --------------------------------------------------------------------
-
- /**
- * @see java.util.Enumeration#hasMoreElements()
- */
- public boolean hasMoreElements()
- {
- return m_iterator.hasNext();
- }
-
-
- /**
- * @see java.util.Enumeration#nextElement()
- */
- public Object nextElement()
- {
- return m_iterator.next();
- }
-
-
- // --------------------------------------------------------------------
- // NamingEnumeration Interface Method Implementations
- // --------------------------------------------------------------------
-
- /**
- * @see javax.naming.NamingEnumeration#close()
- */
- public void close()
- {
- // Does nothing!
- }
-
-
- /**
- * @see javax.naming.NamingEnumeration#hasMore()
- */
- public boolean hasMore()
- {
- return m_iterator.hasNext();
- }
-
-
- /**
- * @see javax.naming.NamingEnumeration#next()
- */
- public Object next()
- {
- return m_iterator.next();
- }
-}
+/*
+ * 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.
+ *
+ */
+
+/*
+ * $Id$
+ *
+ * -- (c) LDAPd Group --
+ * -- Please refer to the LICENSE.txt file in the root directory of --
+ * -- any LDAPd project for copyright and distribution information. --
+ *
+ */
+
+package org.apache.directory.shared.ldap.message;
+
+
+import java.util.Iterator;
+import javax.naming.NamingEnumeration;
+
+
+/**
+ * A NamingEnumeration over an Iterator.
+ *
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author <a href="mailto:jmachols@attbi.com">Jeff Machols</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public class IteratorNamingEnumeration implements NamingEnumeration
+{
+ /** the iterator to wrap as in the enumeration */
+ private final Iterator m_iterator;
+
+
+ /**
+ * Creates a NamingEnumeration over an Iterator.
+ *
+ * @param a_iterator
+ * the Iterator the NamingEnumeration is based on.
+ */
+ public IteratorNamingEnumeration(final Iterator a_iterator)
+ {
+ m_iterator = a_iterator;
+ }
+
+
+ // --------------------------------------------------------------------
+ // Enumeration Interface Method Implementations
+ // --------------------------------------------------------------------
+
+ /**
+ * @see java.util.Enumeration#hasMoreElements()
+ */
+ public boolean hasMoreElements()
+ {
+ return m_iterator.hasNext();
+ }
+
+
+ /**
+ * @see java.util.Enumeration#nextElement()
+ */
+ public Object nextElement()
+ {
+ return m_iterator.next();
+ }
+
+
+ // --------------------------------------------------------------------
+ // NamingEnumeration Interface Method Implementations
+ // --------------------------------------------------------------------
+
+ /**
+ * @see javax.naming.NamingEnumeration#close()
+ */
+ public void close()
+ {
+ // Does nothing!
+ }
+
+
+ /**
+ * @see javax.naming.NamingEnumeration#hasMore()
+ */
+ public boolean hasMore()
+ {
+ return m_iterator.hasNext();
+ }
+
+
+ /**
+ * @see javax.naming.NamingEnumeration#next()
+ */
+ public Object next()
+ {
+ return m_iterator.next();
+ }
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/IteratorNamingEnumeration.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java Sat Feb 11 21:50:03 2006
@@ -1,142 +1,142 @@
-/*
- * 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.
- *
- */
-
-/*
- * $Id: LdapResult.java,v 1.4 2003/07/31 21:44:48 akarasulu Exp $
- *
- * -- (c) LDAPd Group --
- * -- Please refer to the LICENSE.txt file in the root directory of --
- * -- any LDAPd project for copyright and distribution information. --
- *
- */
-
-package org.apache.directory.shared.ldap.message;
-
-
-/**
- * LDAPv3 result structure embedded into Responses. See section 4.1.10 in <a
- * href="">RFC 2251</a> for a description of the LDAPResult ASN.1 structure,
- * here's a snippet from it:
- *
- * <pre>
- * The LDAPResult is the construct used in this protocol to return
- * success or failure indications from servers to clients. In response
- * to various requests servers will return responses containing fields
- * of type LDAPResult to indicate the final status of a protocol
- * operation request.
- * </pre>
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface LdapResult
-{
- /**
- * Gets the result code enumeration associated with the response.
- * Corresponds to the <b> resultCode </b> field within the LDAPResult ASN.1
- * structure.
- *
- * @return the result code enum value.
- */
- ResultCodeEnum getResultCode();
-
-
- /**
- * Sets the result code enumeration associated with the response.
- * Corresponds to the <b> resultCode </b> field within the LDAPResult ASN.1
- * structure.
- *
- * @param resultCode
- * the result code enum value.
- */
- void setResultCode( ResultCodeEnum resultCode );
-
-
- /**
- * Gets the lowest entry in the directory that was matched. For result codes
- * of noSuchObject, aliasProblem, invalidDNSyntax and
- * aliasDereferencingProblem, the matchedDN field is set to the name of the
- * lowest entry (object or alias) in the directory that was matched. If no
- * aliases were dereferenced while attempting to locate the entry, this will
- * be a truncated form of the name provided, or if aliases were
- * dereferenced, of the resulting name, as defined in section 12.5 of X.511
- * [8]. The matchedDN field is to be set to a zero length string with all
- * other result codes.
- *
- * @return the Dn of the lowest matched entry.
- */
- String getMatchedDn();
-
-
- /**
- * Sets the lowest entry in the directory that was matched.
- *
- * @see #getMatchedDn()
- * @param dn
- * the Dn of the lowest matched entry.
- */
- void setMatchedDn( String dn );
-
-
- /**
- * Gets the descriptive error message associated with the error code. May be
- * null for SUCCESS, COMPARETRUE, COMPAREFALSE and REFERRAL operations.
- *
- * @return the descriptive error message.
- */
- String getErrorMessage();
-
-
- /**
- * Sets the descriptive error message associated with the error code. May be
- * null for SUCCESS, COMPARETRUE, and COMPAREFALSE operations.
- *
- * @param errorMessage
- * the descriptive error message.
- */
- void setErrorMessage( String errorMessage );
-
-
- /**
- * Gets whether or not this result represents a Referral. For referrals the
- * error code is set to REFERRAL and the referral property is not null.
- *
- * @return true if this result represents a referral.
- */
- boolean isReferral();
-
-
- /**
- * Gets the Referral associated with this LdapResult if the resultCode
- * property is set to the REFERRAL ResultCodeEnum.
- *
- * @return the referral on REFERRAL errors, null on all others.
- */
- Referral getReferral();
-
-
- /**
- * Sets the Referral associated with this LdapResult if the resultCode
- * property is set to the REFERRAL ResultCodeEnum. Setting this property
- * will result in a true return from isReferral and the resultCode should be
- * set to REFERRAL.
- *
- * @param referral
- * optional referral on REFERRAL errors.
- */
- void setReferral( Referral referral );
-}
+/*
+ * 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.
+ *
+ */
+
+/*
+ * $Id$
+ *
+ * -- (c) LDAPd Group --
+ * -- Please refer to the LICENSE.txt file in the root directory of --
+ * -- any LDAPd project for copyright and distribution information. --
+ *
+ */
+
+package org.apache.directory.shared.ldap.message;
+
+
+/**
+ * LDAPv3 result structure embedded into Responses. See section 4.1.10 in <a
+ * href="">RFC 2251</a> for a description of the LDAPResult ASN.1 structure,
+ * here's a snippet from it:
+ *
+ * <pre>
+ * The LDAPResult is the construct used in this protocol to return
+ * success or failure indications from servers to clients. In response
+ * to various requests servers will return responses containing fields
+ * of type LDAPResult to indicate the final status of a protocol
+ * operation request.
+ * </pre>
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface LdapResult
+{
+ /**
+ * Gets the result code enumeration associated with the response.
+ * Corresponds to the <b> resultCode </b> field within the LDAPResult ASN.1
+ * structure.
+ *
+ * @return the result code enum value.
+ */
+ ResultCodeEnum getResultCode();
+
+
+ /**
+ * Sets the result code enumeration associated with the response.
+ * Corresponds to the <b> resultCode </b> field within the LDAPResult ASN.1
+ * structure.
+ *
+ * @param resultCode
+ * the result code enum value.
+ */
+ void setResultCode( ResultCodeEnum resultCode );
+
+
+ /**
+ * Gets the lowest entry in the directory that was matched. For result codes
+ * of noSuchObject, aliasProblem, invalidDNSyntax and
+ * aliasDereferencingProblem, the matchedDN field is set to the name of the
+ * lowest entry (object or alias) in the directory that was matched. If no
+ * aliases were dereferenced while attempting to locate the entry, this will
+ * be a truncated form of the name provided, or if aliases were
+ * dereferenced, of the resulting name, as defined in section 12.5 of X.511
+ * [8]. The matchedDN field is to be set to a zero length string with all
+ * other result codes.
+ *
+ * @return the Dn of the lowest matched entry.
+ */
+ String getMatchedDn();
+
+
+ /**
+ * Sets the lowest entry in the directory that was matched.
+ *
+ * @see #getMatchedDn()
+ * @param dn
+ * the Dn of the lowest matched entry.
+ */
+ void setMatchedDn( String dn );
+
+
+ /**
+ * Gets the descriptive error message associated with the error code. May be
+ * null for SUCCESS, COMPARETRUE, COMPAREFALSE and REFERRAL operations.
+ *
+ * @return the descriptive error message.
+ */
+ String getErrorMessage();
+
+
+ /**
+ * Sets the descriptive error message associated with the error code. May be
+ * null for SUCCESS, COMPARETRUE, and COMPAREFALSE operations.
+ *
+ * @param errorMessage
+ * the descriptive error message.
+ */
+ void setErrorMessage( String errorMessage );
+
+
+ /**
+ * Gets whether or not this result represents a Referral. For referrals the
+ * error code is set to REFERRAL and the referral property is not null.
+ *
+ * @return true if this result represents a referral.
+ */
+ boolean isReferral();
+
+
+ /**
+ * Gets the Referral associated with this LdapResult if the resultCode
+ * property is set to the REFERRAL ResultCodeEnum.
+ *
+ * @return the referral on REFERRAL errors, null on all others.
+ */
+ Referral getReferral();
+
+
+ /**
+ * Sets the Referral associated with this LdapResult if the resultCode
+ * property is set to the REFERRAL ResultCodeEnum. Setting this property
+ * will result in a true return from isReferral and the resultCode should be
+ * set to REFERRAL.
+ *
+ * @param referral
+ * optional referral on REFERRAL errors.
+ */
+ void setReferral( Referral referral );
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResult.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java Sat Feb 11 21:50:03 2006
@@ -16,7 +16,7 @@
*/
/*
- * $Id: LdapResultImpl.java,v 1.4 2003/07/31 21:44:48 akarasulu Exp $
+ * $Id$
*
* -- (c) LDAPd Group --
* -- Please refer to the LICENSE.txt file in the root directory of --
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapResultImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributeImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributesImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/LockableAttributesImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManageDsaITControl.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java Sat Feb 11 21:50:03 2006
@@ -1,36 +1,36 @@
-/*
- * 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;
-
-
-/**
- * A request that can generate zero, one, or more heterogenous responses for a
- * single request.
- *
- * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
- * @version $Rev$
- */
-public interface ManyReplyRequest extends ResultResponseRequest
-{
- /**
- * Gets the various types of messages that can be generated by this kind of
- * request.
- *
- * @return the messages types generated in response to this Request
- */
- MessageTypeEnum[] getResponseTypes();
-}
+/*
+ * 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;
+
+
+/**
+ * A request that can generate zero, one, or more heterogenous responses for a
+ * single request.
+ *
+ * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface ManyReplyRequest extends ResultResponseRequest
+{
+ /**
+ * Gets the various types of messages that can be generated by this kind of
+ * request.
+ *
+ * @return the messages types generated in response to this Request
+ */
+ MessageTypeEnum[] getResponseTypes();
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ManyReplyRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Message.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/Message.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageDecoder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageDecoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageEncoder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageEncoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java Sat Feb 11 21:50:03 2006
@@ -1,64 +1,64 @@
-/*
- * 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.
- *
- */
-
-/*
- * $Id: MessageException.java,v 1.3 2003/07/31 21:44:49 akarasulu Exp $
- *
- * -- (c) LDAPd Group --
- * -- Please refer to the LICENSE.txt file in the root directory of --
- * -- any LDAPd project for copyright and distribution information. --
- *
- */
-
-package org.apache.directory.shared.ldap.message;
-
-
-import org.apache.directory.shared.ldap.RuntimeMultiException;
-
-
-/**
- * This exception is thrown when a message processing error occurs.
- *
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public class MessageException extends RuntimeMultiException
-{
- static final long serialVersionUID = -155089078576745029L;
-
-
- /**
- * Constructs an Exception without a message.
- */
- public MessageException()
- {
- super();
- }
-
-
- /**
- * Constructs an Exception with a detailed message.
- *
- * @param a_message
- * The message associated with the exception.
- */
- public MessageException(String a_message)
- {
- super( a_message );
- }
-}
+/*
+ * 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.
+ *
+ */
+
+/*
+ * $Id$
+ *
+ * -- (c) LDAPd Group --
+ * -- Please refer to the LICENSE.txt file in the root directory of --
+ * -- any LDAPd project for copyright and distribution information. --
+ *
+ */
+
+package org.apache.directory.shared.ldap.message;
+
+
+import org.apache.directory.shared.ldap.RuntimeMultiException;
+
+
+/**
+ * This exception is thrown when a message processing error occurs.
+ *
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public class MessageException extends RuntimeMultiException
+{
+ static final long serialVersionUID = -155089078576745029L;
+
+
+ /**
+ * Constructs an Exception without a message.
+ */
+ public MessageException()
+ {
+ super();
+ }
+
+
+ /**
+ * Constructs an Exception with a detailed message.
+ *
+ * @param a_message
+ * The message associated with the exception.
+ */
+ public MessageException(String a_message)
+ {
+ super( a_message );
+ }
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageTypeEnum.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/MessageTypeEnum.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Modified: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java Sat Feb 11 21:50:03 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;
-
-
-/**
- * Modify DN protocol response message used to confirm the results of a modify
- * DN request message.
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Revision$
- */
-public interface ModifyDnResponse extends ResultResponse
-{
- /** Modify DN response message type enumeration value */
- MessageTypeEnum TYPE = MessageTypeEnum.MODDNRESPONSE;
-}
+/*
+ * 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;
+
+
+/**
+ * Modify DN protocol response message used to confirm the results of a modify
+ * DN request message.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Revision$
+ */
+public interface ModifyDnResponse extends ResultResponse
+{
+ /** Modify DN response message type enumeration value */
+ MessageTypeEnum TYPE = MessageTypeEnum.MODDNRESPONSE;
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponse.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponseImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/ModifyDnResponseImpl.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id