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 [30/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/url/LdapUrl.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrl.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrl.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrl.java Sat Feb 11 21:50:03 2006
@@ -1,116 +1,116 @@
-/*
- * 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: LdapUrl.java,v 1.2 2003/07/27 03:07:02 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.url;
-
-
-import java.util.List;
-
-import javax.naming.Name;
-
-import org.apache.directory.shared.ldap.filter.ExprNode;
-
-
-/**
- * A parsed LDAP URL.
- *
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public interface LdapUrl
-{
- /**
- * Gets the distinguished name of this LdapUrl.
- *
- * @return the non-normalized Dn
- */
- Name getName();
-
-
- /**
- * Gets the hostname component of this LdapUrl.
- *
- * @return the hostname of the server.
- */
- String getHostName();
-
-
- /**
- * Gets the port component of this LdapUrl.
- *
- * @return the port number component of the LdapUrl.
- */
- int getPort();
-
-
- /**
- * Gets the filter component of this LdapUrl as a filter expression tree.
- *
- * @return the filter expression tree's root node.
- */
- ExprNode getFilter();
-
-
- /**
- * Gets the attributes component of this LdapUrl.
- *
- * @return a List containing the attribute names as Strings to return in the
- * search results if this LdapUrl represents a search. If attributes
- * are not specified the list will be empty.
- */
- List getAttributes();
-
-
- /**
- * Gets the extensions component of this LdapUrl. TODO can't say I know what
- * this is at the moment
- *
- * @return a List containing the extensions
- */
- List getExtensions();
-
-
- /**
- * Gets the scope of the search if this LdapUrl represents a search URL. The
- * values returned are defined within the JNDI SearchControls class.
- *
- * @see javax.naming.directory.SearchControls#OBJECT_SCOPE
- * @see javax.naming.directory.SearchControls#ONELEVEL_SCOPE
- * @see javax.naming.directory.SearchControls#SUBTREE_SCOPE
- * @return the scope of the search.
- */
- int getScope();
-
-
- /**
- * Gets whether or not secure ldaps scheme with SSL is used or normal ldap
- * scheme is used.
- *
- * @return true if ldaps is the scheme, false if it is ldap
- */
- boolean isSecure();
-}
+/*
+ * 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.url;
+
+
+import java.util.List;
+
+import javax.naming.Name;
+
+import org.apache.directory.shared.ldap.filter.ExprNode;
+
+
+/**
+ * A parsed LDAP URL.
+ *
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public interface LdapUrl
+{
+ /**
+ * Gets the distinguished name of this LdapUrl.
+ *
+ * @return the non-normalized Dn
+ */
+ Name getName();
+
+
+ /**
+ * Gets the hostname component of this LdapUrl.
+ *
+ * @return the hostname of the server.
+ */
+ String getHostName();
+
+
+ /**
+ * Gets the port component of this LdapUrl.
+ *
+ * @return the port number component of the LdapUrl.
+ */
+ int getPort();
+
+
+ /**
+ * Gets the filter component of this LdapUrl as a filter expression tree.
+ *
+ * @return the filter expression tree's root node.
+ */
+ ExprNode getFilter();
+
+
+ /**
+ * Gets the attributes component of this LdapUrl.
+ *
+ * @return a List containing the attribute names as Strings to return in the
+ * search results if this LdapUrl represents a search. If attributes
+ * are not specified the list will be empty.
+ */
+ List getAttributes();
+
+
+ /**
+ * Gets the extensions component of this LdapUrl. TODO can't say I know what
+ * this is at the moment
+ *
+ * @return a List containing the extensions
+ */
+ List getExtensions();
+
+
+ /**
+ * Gets the scope of the search if this LdapUrl represents a search URL. The
+ * values returned are defined within the JNDI SearchControls class.
+ *
+ * @see javax.naming.directory.SearchControls#OBJECT_SCOPE
+ * @see javax.naming.directory.SearchControls#ONELEVEL_SCOPE
+ * @see javax.naming.directory.SearchControls#SUBTREE_SCOPE
+ * @return the scope of the search.
+ */
+ int getScope();
+
+
+ /**
+ * Gets whether or not secure ldaps scheme with SSL is used or normal ldap
+ * scheme is used.
+ *
+ * @return true if ldaps is the scheme, false if it is ldap
+ */
+ boolean isSecure();
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrl.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/url/LdapUrlParser.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrlParser.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrlParser.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrlParser.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.
- *
- */
-
-/*
- * $Id: LdapUrlParser.java,v 1.1 2003/07/25 21:41: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.url;
-
-
-import javax.naming.NamingException;
-
-
-/**
- * An LDAP URL parser.
- *
- * @see <a href="http://www.faqs.org/rfcs/rfc2255.html">RFC 2255</a>
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public interface LdapUrlParser
-{
- /**
- * Parses an LDAP URL.
- *
- * @param a_urlString
- * the LDAP URL as a String
- * @return a parsed instance of LdapUrl.
- * @throws NamingException
- * if the URL or any one of its components is malformed.
- */
- LdapUrl parse( String a_urlString ) throws NamingException;
-}
+/*
+ * 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.url;
+
+
+import javax.naming.NamingException;
+
+
+/**
+ * An LDAP URL parser.
+ *
+ * @see <a href="http://www.faqs.org/rfcs/rfc2255.html">RFC 2255</a>
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public interface LdapUrlParser
+{
+ /**
+ * Parses an LDAP URL.
+ *
+ * @param a_urlString
+ * the LDAP URL as a String
+ * @return a parsed instance of LdapUrl.
+ * @throws NamingException
+ * if the URL or any one of its components is malformed.
+ */
+ LdapUrl parse( String a_urlString ) throws NamingException;
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrlParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/url/LdapUrlParser.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/util/AbstractSimpleComponentsMonitor.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java Sat Feb 11 21:50:03 2006
@@ -1,63 +1,63 @@
-/*
- * Copyright 2005 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.util;
-
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-
-
-public abstract class AbstractSimpleComponentsMonitor implements ComponentsMonitor
-{
- private List components;
-
-
- public AbstractSimpleComponentsMonitor(String[] components)
- {
- // register components
- this.components = new LinkedList( Arrays.asList( components ) );
- }
-
-
- public ComponentsMonitor useComponent( String component ) throws IllegalArgumentException
- {
- if ( !components.remove( component ) )
- {
- throw new IllegalArgumentException( "Unregistered or previously used component: " + component );
- }
-
- return this;
- }
-
-
- public boolean allComponentsUsed()
- {
- return components.isEmpty();
- }
-
-
- public List getRemainingComponents()
- {
- return Collections.unmodifiableList( components );
- }
-
-
- public abstract boolean finalStateValid();
-}
+/*
+ * Copyright 2005 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.util;
+
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+
+public abstract class AbstractSimpleComponentsMonitor implements ComponentsMonitor
+{
+ private List components;
+
+
+ public AbstractSimpleComponentsMonitor(String[] components)
+ {
+ // register components
+ this.components = new LinkedList( Arrays.asList( components ) );
+ }
+
+
+ public ComponentsMonitor useComponent( String component ) throws IllegalArgumentException
+ {
+ if ( !components.remove( component ) )
+ {
+ throw new IllegalArgumentException( "Unregistered or previously used component: " + component );
+ }
+
+ return this;
+ }
+
+
+ public boolean allComponentsUsed()
+ {
+ return components.isEmpty();
+ }
+
+
+ public List getRemainingComponents()
+ {
+ return Collections.unmodifiableList( components );
+ }
+
+
+ public abstract boolean finalStateValid();
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ArrayEnumeration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ArrayEnumeration.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ArrayUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ArrayUtils.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/util/AttributeUtils.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/util/Base64.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.java Sat Feb 11 21:50:03 2006
@@ -1,213 +1,213 @@
-/*
- * 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: Base64.java,v 1.3 2003/08/01 05:31:31 akarasulu Exp $
- * $Prologue$
- *
- * -- (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.util;
-
-
-/**
- * decoding of base64 characters to raw bytes.
- *
- * @author Kevin Kelley (kelley@ruralnet.net)
- * @author $Author: akarasulu $
- * @version $Revision$
- * @date 06 August 1998
- * @modified 14 February 2000
- * @modified 22 September 2000
- */
-public class Base64
-{
-
- /**
- * passed data array.
- *
- * @param a_data
- * the array of bytes to encode
- * @return base64-coded character array.
- */
- public static char[] encode( byte[] a_data )
- {
- char[] l_out = new char[( ( a_data.length + 2 ) / 3 ) * 4];
-
- //
- // 3 bytes encode to 4 chars. Output is always an even
- // multiple of 4 characters.
- //
- for ( int ii = 0, l_index = 0; ii < a_data.length; ii += 3, l_index += 4 )
- {
- boolean l_quad = false;
- boolean l_trip = false;
-
- int l_val = ( 0xFF & ( int ) a_data[ii] );
- l_val <<= 8;
- if ( ( ii + 1 ) < a_data.length )
- {
- l_val |= ( 0xFF & ( int ) a_data[ii + 1] );
- l_trip = true;
- }
-
- l_val <<= 8;
- if ( ( ii + 2 ) < a_data.length )
- {
- l_val |= ( 0xFF & ( int ) a_data[ii + 2] );
- l_quad = true;
- }
-
- l_out[l_index + 3] = s_alphabet[( l_quad ? ( l_val & 0x3F ) : 64 )];
- l_val >>= 6;
- l_out[l_index + 2] = s_alphabet[( l_trip ? ( l_val & 0x3F ) : 64 )];
- l_val >>= 6;
- l_out[l_index + 1] = s_alphabet[l_val & 0x3F];
- l_val >>= 6;
- l_out[l_index + 0] = s_alphabet[l_val & 0x3F];
- }
- return l_out;
- }
-
-
- /**
- * Decodes a BASE-64 encoded stream to recover the original data. White
- * space before and after will be trimmed away, but no other manipulation of
- * the input will be performed. As of version 1.2 this method will properly
- * handle input containing junk characters (newlines and the like) rather
- * than throwing an error. It does this by pre-parsing the input and
- * generating from that a count of VALID input characters.
- *
- * @param a_data
- * data to decode.
- * @return the decoded binary data.
- */
- public static byte[] decode( char[] a_data )
- {
- // as our input could contain non-BASE64 data (newlines,
- // whitespace of any sort, whatever) we must first adjust
- // our count of USABLE data so that...
- // (a) we don't misallocate the output array, and
- // (b) think that we miscalculated our data length
- // just because of extraneous throw-away junk
-
- int l_tempLen = a_data.length;
- for ( int ii = 0; ii < a_data.length; ii++ )
- {
- if ( ( a_data[ii] > 255 ) || s_codes[a_data[ii]] < 0 )
- {
- --l_tempLen; // ignore non-valid chars and padding
- }
- }
- // calculate required length:
- // -- 3 bytes for every 4 valid base64 chars
- // -- plus 2 bytes if there are 3 extra base64 chars,
- // or plus 1 byte if there are 2 extra.
-
- int l_len = ( l_tempLen / 4 ) * 3;
-
- if ( ( l_tempLen % 4 ) == 3 )
- {
- l_len += 2;
- }
-
- if ( ( l_tempLen % 4 ) == 2 )
- {
- l_len += 1;
- }
-
- byte[] l_out = new byte[l_len];
-
- int l_shift = 0; // # of excess bits stored in accum
- int l_accum = 0; // excess bits
- int l_index = 0;
-
- // we now go through the entire array (NOT using the 'tempLen' value)
- for ( int ii = 0; ii < a_data.length; ii++ )
- {
- int l_value = ( a_data[ii] > 255 ) ? -1 : s_codes[a_data[ii]];
-
- if ( l_value >= 0 ) // skip over non-code
- {
- l_accum <<= 6; // bits shift up by 6 each time thru
- l_shift += 6; // loop, with new bits being put in
- l_accum |= l_value; // at the bottom. whenever there
- if ( l_shift >= 8 ) // are 8 or more shifted in, write them
- {
- l_shift -= 8; // out (from the top, leaving any excess
- l_out[l_index++] = // at the bottom for next iteration.
- ( byte ) ( ( l_accum >> l_shift ) & 0xff );
- }
- }
- // we will also have skipped processing a padding null byte ('=')
- // here;
- // these are used ONLY for padding to an even length and do not
- // legally
- // occur as encoded data. for this reason we can ignore the fact
- // that
- // no index++ operation occurs in that special case: the out[] array
- // is
- // initialized to all-zero bytes to start with and that works to our
- // advantage in this combination.
- }
-
- // if there is STILL something wrong we just have to throw up now!
- if ( l_index != l_out.length )
- {
- throw new Error( "Miscalculated data length (wrote " + l_index + " instead of " + l_out.length + ")" );
- }
-
- return l_out;
- }
-
- /** code characters for values 0..63 */
- private static char[] s_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
- .toCharArray();
-
- /** lookup table for converting base64 characters to value in range 0..63 */
- private static byte[] s_codes = new byte[256];
-
- static
- {
- for ( int ii = 0; ii < 256; ii++ )
- {
- s_codes[ii] = -1;
- }
-
- for ( int ii = 'A'; ii <= 'Z'; ii++ )
- {
- s_codes[ii] = ( byte ) ( ii - 'A' );
- }
-
- for ( int ii = 'a'; ii <= 'z'; ii++ )
- {
- s_codes[ii] = ( byte ) ( 26 + ii - 'a' );
- }
-
- for ( int ii = '0'; ii <= '9'; ii++ )
- {
- s_codes[ii] = ( byte ) ( 52 + ii - '0' );
- }
-
- s_codes['+'] = 62;
- s_codes['/'] = 63;
- }
-}
+/*
+ * 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$
+ * $Prologue$
+ *
+ * -- (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.util;
+
+
+/**
+ * decoding of base64 characters to raw bytes.
+ *
+ * @author Kevin Kelley (kelley@ruralnet.net)
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ * @date 06 August 1998
+ * @modified 14 February 2000
+ * @modified 22 September 2000
+ */
+public class Base64
+{
+
+ /**
+ * passed data array.
+ *
+ * @param a_data
+ * the array of bytes to encode
+ * @return base64-coded character array.
+ */
+ public static char[] encode( byte[] a_data )
+ {
+ char[] l_out = new char[( ( a_data.length + 2 ) / 3 ) * 4];
+
+ //
+ // 3 bytes encode to 4 chars. Output is always an even
+ // multiple of 4 characters.
+ //
+ for ( int ii = 0, l_index = 0; ii < a_data.length; ii += 3, l_index += 4 )
+ {
+ boolean l_quad = false;
+ boolean l_trip = false;
+
+ int l_val = ( 0xFF & ( int ) a_data[ii] );
+ l_val <<= 8;
+ if ( ( ii + 1 ) < a_data.length )
+ {
+ l_val |= ( 0xFF & ( int ) a_data[ii + 1] );
+ l_trip = true;
+ }
+
+ l_val <<= 8;
+ if ( ( ii + 2 ) < a_data.length )
+ {
+ l_val |= ( 0xFF & ( int ) a_data[ii + 2] );
+ l_quad = true;
+ }
+
+ l_out[l_index + 3] = s_alphabet[( l_quad ? ( l_val & 0x3F ) : 64 )];
+ l_val >>= 6;
+ l_out[l_index + 2] = s_alphabet[( l_trip ? ( l_val & 0x3F ) : 64 )];
+ l_val >>= 6;
+ l_out[l_index + 1] = s_alphabet[l_val & 0x3F];
+ l_val >>= 6;
+ l_out[l_index + 0] = s_alphabet[l_val & 0x3F];
+ }
+ return l_out;
+ }
+
+
+ /**
+ * Decodes a BASE-64 encoded stream to recover the original data. White
+ * space before and after will be trimmed away, but no other manipulation of
+ * the input will be performed. As of version 1.2 this method will properly
+ * handle input containing junk characters (newlines and the like) rather
+ * than throwing an error. It does this by pre-parsing the input and
+ * generating from that a count of VALID input characters.
+ *
+ * @param a_data
+ * data to decode.
+ * @return the decoded binary data.
+ */
+ public static byte[] decode( char[] a_data )
+ {
+ // as our input could contain non-BASE64 data (newlines,
+ // whitespace of any sort, whatever) we must first adjust
+ // our count of USABLE data so that...
+ // (a) we don't misallocate the output array, and
+ // (b) think that we miscalculated our data length
+ // just because of extraneous throw-away junk
+
+ int l_tempLen = a_data.length;
+ for ( int ii = 0; ii < a_data.length; ii++ )
+ {
+ if ( ( a_data[ii] > 255 ) || s_codes[a_data[ii]] < 0 )
+ {
+ --l_tempLen; // ignore non-valid chars and padding
+ }
+ }
+ // calculate required length:
+ // -- 3 bytes for every 4 valid base64 chars
+ // -- plus 2 bytes if there are 3 extra base64 chars,
+ // or plus 1 byte if there are 2 extra.
+
+ int l_len = ( l_tempLen / 4 ) * 3;
+
+ if ( ( l_tempLen % 4 ) == 3 )
+ {
+ l_len += 2;
+ }
+
+ if ( ( l_tempLen % 4 ) == 2 )
+ {
+ l_len += 1;
+ }
+
+ byte[] l_out = new byte[l_len];
+
+ int l_shift = 0; // # of excess bits stored in accum
+ int l_accum = 0; // excess bits
+ int l_index = 0;
+
+ // we now go through the entire array (NOT using the 'tempLen' value)
+ for ( int ii = 0; ii < a_data.length; ii++ )
+ {
+ int l_value = ( a_data[ii] > 255 ) ? -1 : s_codes[a_data[ii]];
+
+ if ( l_value >= 0 ) // skip over non-code
+ {
+ l_accum <<= 6; // bits shift up by 6 each time thru
+ l_shift += 6; // loop, with new bits being put in
+ l_accum |= l_value; // at the bottom. whenever there
+ if ( l_shift >= 8 ) // are 8 or more shifted in, write them
+ {
+ l_shift -= 8; // out (from the top, leaving any excess
+ l_out[l_index++] = // at the bottom for next iteration.
+ ( byte ) ( ( l_accum >> l_shift ) & 0xff );
+ }
+ }
+ // we will also have skipped processing a padding null byte ('=')
+ // here;
+ // these are used ONLY for padding to an even length and do not
+ // legally
+ // occur as encoded data. for this reason we can ignore the fact
+ // that
+ // no index++ operation occurs in that special case: the out[] array
+ // is
+ // initialized to all-zero bytes to start with and that works to our
+ // advantage in this combination.
+ }
+
+ // if there is STILL something wrong we just have to throw up now!
+ if ( l_index != l_out.length )
+ {
+ throw new Error( "Miscalculated data length (wrote " + l_index + " instead of " + l_out.length + ")" );
+ }
+
+ return l_out;
+ }
+
+ /** code characters for values 0..63 */
+ private static char[] s_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
+ .toCharArray();
+
+ /** lookup table for converting base64 characters to value in range 0..63 */
+ private static byte[] s_codes = new byte[256];
+
+ static
+ {
+ for ( int ii = 0; ii < 256; ii++ )
+ {
+ s_codes[ii] = -1;
+ }
+
+ for ( int ii = 'A'; ii <= 'Z'; ii++ )
+ {
+ s_codes[ii] = ( byte ) ( ii - 'A' );
+ }
+
+ for ( int ii = 'a'; ii <= 'z'; ii++ )
+ {
+ s_codes[ii] = ( byte ) ( 26 + ii - 'a' );
+ }
+
+ for ( int ii = '0'; ii <= '9'; ii++ )
+ {
+ s_codes[ii] = ( byte ) ( 52 + ii - '0' );
+ }
+
+ s_codes['+'] = 62;
+ s_codes['/'] = 63;
+ }
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.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/util/BigIntegerComparator.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BigIntegerComparator.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BigIntegerComparator.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BigIntegerComparator.java Sat Feb 11 21:50:03 2006
@@ -1,75 +1,75 @@
-/*
- * 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: BigIntegerComparator.java,v 1.1 2003/09/16 05:29:44 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.util;
-
-
-import java.math.BigInteger;
-
-
-/**
- * Compares BigInteger keys and values within a table.
- *
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public class BigIntegerComparator implements java.util.Comparator, java.io.Serializable
-{
- /** A instance of this comparator */
- public static final BigIntegerComparator INSTANCE = new BigIntegerComparator();
-
- /**
- * Version id for serialization.
- */
- static final long serialVersionUID = 1L;
-
-
- /**
- * Compare two objects.
- *
- * @param an_obj1
- * First object
- * @param an_obj2
- * Second object
- * @return 1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2
- */
- public int compare( Object an_obj1, Object an_obj2 )
- {
- if ( an_obj1 == null )
- {
- throw new IllegalArgumentException( "Argument 'an_obj1' is null" );
- }
-
- if ( an_obj2 == null )
- {
- throw new IllegalArgumentException( "Argument 'an_obj2' is null" );
- }
-
- BigInteger l_int1 = ( BigInteger ) an_obj1;
- BigInteger l_int2 = ( BigInteger ) an_obj2;
- return l_int1.compareTo( l_int2 );
- }
-}
+/*
+ * 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.util;
+
+
+import java.math.BigInteger;
+
+
+/**
+ * Compares BigInteger keys and values within a table.
+ *
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public class BigIntegerComparator implements java.util.Comparator, java.io.Serializable
+{
+ /** A instance of this comparator */
+ public static final BigIntegerComparator INSTANCE = new BigIntegerComparator();
+
+ /**
+ * Version id for serialization.
+ */
+ static final long serialVersionUID = 1L;
+
+
+ /**
+ * Compare two objects.
+ *
+ * @param an_obj1
+ * First object
+ * @param an_obj2
+ * Second object
+ * @return 1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2
+ */
+ public int compare( Object an_obj1, Object an_obj2 )
+ {
+ if ( an_obj1 == null )
+ {
+ throw new IllegalArgumentException( "Argument 'an_obj1' is null" );
+ }
+
+ if ( an_obj2 == null )
+ {
+ throw new IllegalArgumentException( "Argument 'an_obj2' is null" );
+ }
+
+ BigInteger l_int1 = ( BigInteger ) an_obj1;
+ BigInteger l_int2 = ( BigInteger ) an_obj2;
+ return l_int1.compareTo( l_int2 );
+ }
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BigIntegerComparator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BigIntegerComparator.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/util/BooleanUtils.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java Sat Feb 11 21:50:03 2006
@@ -30,7 +30,7 @@
* @author Matthew Hawthorne
* @author Gary Gregory
* @since 2.0
- * @version $Id: BooleanUtils.java,v 1.18 2004/02/18 22:59:50 ggregory Exp $
+ * @version $Id$
*/
public class BooleanUtils
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.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/util/ClassUtils.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ClassUtils.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ClassUtils.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ClassUtils.java Sat Feb 11 21:50:03 2006
@@ -37,7 +37,7 @@
* @author Gary Gregory
* @author Norm Deane
* @since 2.0
- * @version $Id: ClassUtils.java,v 1.30 2004/06/30 18:33:58 ggregory Exp $
+ * @version $Id$
*/
public class ClassUtils
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ClassUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ClassUtils.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/util/ComponentsMonitor.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ComponentsMonitor.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ComponentsMonitor.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ComponentsMonitor.java Sat Feb 11 21:50:03 2006
@@ -1,20 +1,20 @@
-package org.apache.directory.shared.ldap.util;
-
-
-import java.util.List;
-
-
-public interface ComponentsMonitor
-{
- public ComponentsMonitor useComponent( String component ) throws IllegalArgumentException;
-
-
- public boolean allComponentsUsed();
-
-
- public boolean finalStateValid();
-
-
- public List getRemainingComponents();
-
-}
+package org.apache.directory.shared.ldap.util;
+
+
+import java.util.List;
+
+
+public interface ComponentsMonitor
+{
+ public ComponentsMonitor useComponent( String component ) throws IllegalArgumentException;
+
+
+ public boolean allComponentsUsed();
+
+
+ public boolean finalStateValid();
+
+
+ public List getRemainingComponents();
+
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ComponentsMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ComponentsMonitor.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DNUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DNUtils.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.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/util/EmptyEnumeration.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java Sat Feb 11 21:50:03 2006
@@ -1,99 +1,99 @@
-/*
- * 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: EmptyEnumeration.java,v 1.1 2003/09/16 05:29:44 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. --
- *
- * Created on Aug 11, 2003
- */
-package org.apache.directory.shared.ldap.util;
-
-
-import java.util.NoSuchElementException;
-
-import javax.naming.NamingException;
-import javax.naming.NamingEnumeration;
-
-
-/**
- * An empty NamingEnumeration without any values: meaning
- * hasMore/hasMoreElements() always returns false, and next/nextElement() always
- * throws a NoSuchElementException.
- *
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public class EmptyEnumeration implements NamingEnumeration
-{
-
- /**
- * @see javax.naming.NamingEnumeration#close()
- */
- public void close()
- {
- }
-
-
- /**
- * Always returns false.
- *
- * @see javax.naming.NamingEnumeration#hasMore()
- */
- public boolean hasMore() throws NamingException
- {
- return false;
- }
-
-
- /**
- * Always throws NoSuchElementException.
- *
- * @see javax.naming.NamingEnumeration#next()
- */
- public Object next() throws NamingException
- {
- throw new NoSuchElementException();
- }
-
-
- /**
- * Always return false.
- *
- * @see java.util.Enumeration#hasMoreElements()
- */
- public boolean hasMoreElements()
- {
- return false;
- }
-
-
- /**
- * Always throws NoSuchElementException.
- *
- * @see java.util.Enumeration#nextElement()
- */
- public Object nextElement()
- {
- throw new NoSuchElementException();
- }
-
-}
+/*
+ * 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. --
+ *
+ * Created on Aug 11, 2003
+ */
+package org.apache.directory.shared.ldap.util;
+
+
+import java.util.NoSuchElementException;
+
+import javax.naming.NamingException;
+import javax.naming.NamingEnumeration;
+
+
+/**
+ * An empty NamingEnumeration without any values: meaning
+ * hasMore/hasMoreElements() always returns false, and next/nextElement() always
+ * throws a NoSuchElementException.
+ *
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public class EmptyEnumeration implements NamingEnumeration
+{
+
+ /**
+ * @see javax.naming.NamingEnumeration#close()
+ */
+ public void close()
+ {
+ }
+
+
+ /**
+ * Always returns false.
+ *
+ * @see javax.naming.NamingEnumeration#hasMore()
+ */
+ public boolean hasMore() throws NamingException
+ {
+ return false;
+ }
+
+
+ /**
+ * Always throws NoSuchElementException.
+ *
+ * @see javax.naming.NamingEnumeration#next()
+ */
+ public Object next() throws NamingException
+ {
+ throw new NoSuchElementException();
+ }
+
+
+ /**
+ * Always return false.
+ *
+ * @see java.util.Enumeration#hasMoreElements()
+ */
+ public boolean hasMoreElements()
+ {
+ return false;
+ }
+
+
+ /**
+ * Always throws NoSuchElementException.
+ *
+ * @see java.util.Enumeration#nextElement()
+ */
+ public Object nextElement()
+ {
+ throw new NoSuchElementException();
+ }
+
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.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/util/Enum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Enum.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Enum.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Enum.java Sat Feb 11 21:50:03 2006
@@ -280,7 +280,7 @@
* @author Chris Webb
* @author Mike Bowler
* @since 1.0
- * @version $Id: Enum.java,v 1.28 2004/02/23 04:34:20 ggregory Exp $
+ * @version $Id$
*/
public abstract class Enum implements Comparable, Serializable
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Enum.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Enum.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/util/EnumUtils.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EnumUtils.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EnumUtils.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EnumUtils.java Sat Feb 11 21:50:03 2006
@@ -31,7 +31,7 @@
* @author Stephen Colebourne
* @author Gary Gregory
* @since 1.0
- * @version $Id: EnumUtils.java,v 1.12 2004/02/23 04:34:20 ggregory Exp $
+ * @version $Id$
*/
public class EnumUtils
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EnumUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EnumUtils.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/util/EqualsBuilder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.java Sat Feb 11 21:50:03 2006
@@ -85,7 +85,7 @@
* @author Pete Gieser
* @author Arun Mammen Thomas
* @since 1.0
- * @version $Id: EqualsBuilder.java,v 1.26 2004/08/26 05:46:45 ggregory Exp $
+ * @version $Id$
*/
public class EqualsBuilder
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.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/util/ExceptionUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ExceptionUtils.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/util/HashCodeBuilder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.java Sat Feb 11 21:50:03 2006
@@ -88,7 +88,7 @@
* @author Gary Gregory
* @author Pete Gieser
* @since 1.0
- * @version $Id: HashCodeBuilder.java,v 1.22 2004/08/15 02:17:13 bayard Exp $
+ * @version $Id$
*/
public class HashCodeBuilder
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.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/util/JoinIterator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/JoinIterator.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/util/KeyValue.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/KeyValue.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/KeyValue.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/KeyValue.java Sat Feb 11 21:50:03 2006
@@ -24,7 +24,7 @@
* two get methods.
*
* @since Commons Collections 3.0
- * @version $Revision$ $Date: 2004/02/18 01:15:42 $
+ * @version $Revision$ $Date$
* @author Stephen Colebourne
*/
public interface KeyValue
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/KeyValue.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/KeyValue.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/util/MandatoryAndOptionalComponentsMonitor.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.java Sat Feb 11 21:50:03 2006
@@ -1,98 +1,98 @@
-/*
- * Copyright 2005 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.util;
-
-
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.List;
-
-
-public class MandatoryAndOptionalComponentsMonitor implements ComponentsMonitor
-{
- private ComponentsMonitor mandatoryComponentsMonitor;
-
- private ComponentsMonitor optionalComponentsMonitor;
-
-
- public MandatoryAndOptionalComponentsMonitor(String[] mandatoryComponents, String[] optionalComponents)
- throws IllegalArgumentException
- {
- // check for common elements
- for ( int i = 0; i < mandatoryComponents.length; i++ )
- {
- for ( int j = 0; j < optionalComponents.length; j++ )
- {
- if ( mandatoryComponents[i].equals( optionalComponents[j] ) )
- {
- throw new IllegalArgumentException( "Common element, \"" + mandatoryComponents[i]
- + "\" detected for Mandatory and Optional components." );
- }
- }
- }
-
- mandatoryComponentsMonitor = new MandatoryComponentsMonitor( mandatoryComponents );
- optionalComponentsMonitor = new OptionalComponentsMonitor( optionalComponents );
- }
-
-
- public ComponentsMonitor useComponent( String component )
- {
- try
- {
- mandatoryComponentsMonitor.useComponent( component );
- }
- catch ( IllegalArgumentException e1 )
- {
- try
- {
- optionalComponentsMonitor.useComponent( component );
- }
- catch ( IllegalArgumentException e2 )
- {
- throw new IllegalArgumentException( "Unregistered or previously used component: " + component );
- }
- }
-
- return this;
- }
-
-
- public boolean allComponentsUsed()
- {
- return ( mandatoryComponentsMonitor.allComponentsUsed() && optionalComponentsMonitor.allComponentsUsed() );
- }
-
-
- public boolean finalStateValid()
- {
- return ( mandatoryComponentsMonitor.finalStateValid() && optionalComponentsMonitor.finalStateValid() );
- }
-
-
- public List getRemainingComponents()
- {
- List remainingComponents = new LinkedList();
-
- remainingComponents.addAll( mandatoryComponentsMonitor.getRemainingComponents() );
- remainingComponents.addAll( optionalComponentsMonitor.getRemainingComponents() );
-
- return Collections.unmodifiableList( remainingComponents );
- }
-
-}
+/*
+ * Copyright 2005 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.util;
+
+
+import java.util.Collections;
+import java.util.LinkedList;
+import java.util.List;
+
+
+public class MandatoryAndOptionalComponentsMonitor implements ComponentsMonitor
+{
+ private ComponentsMonitor mandatoryComponentsMonitor;
+
+ private ComponentsMonitor optionalComponentsMonitor;
+
+
+ public MandatoryAndOptionalComponentsMonitor(String[] mandatoryComponents, String[] optionalComponents)
+ throws IllegalArgumentException
+ {
+ // check for common elements
+ for ( int i = 0; i < mandatoryComponents.length; i++ )
+ {
+ for ( int j = 0; j < optionalComponents.length; j++ )
+ {
+ if ( mandatoryComponents[i].equals( optionalComponents[j] ) )
+ {
+ throw new IllegalArgumentException( "Common element, \"" + mandatoryComponents[i]
+ + "\" detected for Mandatory and Optional components." );
+ }
+ }
+ }
+
+ mandatoryComponentsMonitor = new MandatoryComponentsMonitor( mandatoryComponents );
+ optionalComponentsMonitor = new OptionalComponentsMonitor( optionalComponents );
+ }
+
+
+ public ComponentsMonitor useComponent( String component )
+ {
+ try
+ {
+ mandatoryComponentsMonitor.useComponent( component );
+ }
+ catch ( IllegalArgumentException e1 )
+ {
+ try
+ {
+ optionalComponentsMonitor.useComponent( component );
+ }
+ catch ( IllegalArgumentException e2 )
+ {
+ throw new IllegalArgumentException( "Unregistered or previously used component: " + component );
+ }
+ }
+
+ return this;
+ }
+
+
+ public boolean allComponentsUsed()
+ {
+ return ( mandatoryComponentsMonitor.allComponentsUsed() && optionalComponentsMonitor.allComponentsUsed() );
+ }
+
+
+ public boolean finalStateValid()
+ {
+ return ( mandatoryComponentsMonitor.finalStateValid() && optionalComponentsMonitor.finalStateValid() );
+ }
+
+
+ public List getRemainingComponents()
+ {
+ List remainingComponents = new LinkedList();
+
+ remainingComponents.addAll( mandatoryComponentsMonitor.getRemainingComponents() );
+ remainingComponents.addAll( optionalComponentsMonitor.getRemainingComponents() );
+
+ return Collections.unmodifiableList( remainingComponents );
+ }
+
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.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/util/MandatoryComponentsMonitor.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryComponentsMonitor.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryComponentsMonitor.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryComponentsMonitor.java Sat Feb 11 21:50:03 2006
@@ -1,33 +1,33 @@
-/*
- * Copyright 2005 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.util;
-
-
-public class MandatoryComponentsMonitor extends AbstractSimpleComponentsMonitor
-{
- public MandatoryComponentsMonitor(String[] components)
- {
- super( components );
- }
-
-
- public boolean finalStateValid()
- {
- return allComponentsUsed();
- }
-}
+/*
+ * Copyright 2005 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.util;
+
+
+public class MandatoryComponentsMonitor extends AbstractSimpleComponentsMonitor
+{
+ public MandatoryComponentsMonitor(String[] components)
+ {
+ super( components );
+ }
+
+
+ public boolean finalStateValid()
+ {
+ return allComponentsUsed();
+ }
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryComponentsMonitor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryComponentsMonitor.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/util/MultiMap.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MultiMap.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MultiMap.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MultiMap.java Sat Feb 11 21:50:03 2006
@@ -46,7 +46,7 @@
* anyway.
*
* @since Commons Collections 2.0
- * @version $Revision$ $Date: 2004/03/14 15:33:57 $
+ * @version $Revision$ $Date$
* @author Christopher Berry
* @author James Strachan
* @author Stephen Colebourne
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MultiMap.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/MultiMap.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/util/NamespaceTools.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java Sat Feb 11 21:50:03 2006
@@ -16,7 +16,7 @@
*/
/*
- * $Id: NamespaceTools.java,v 1.6 2003/09/23 07:13:26 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/util/NamespaceTools.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.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/util/Nestable.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Nestable.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Nestable.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Nestable.java Sat Feb 11 21:50:03 2006
@@ -29,7 +29,7 @@
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @author Pete Gieser
* @since 1.0
- * @version $Id: Nestable.java,v 1.11 2004/02/18 22:54:04 ggregory Exp $
+ * @version $Id$
*/
public interface Nestable
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Nestable.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/Nestable.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/util/NestableDelegate.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.java Sat Feb 11 21:50:03 2006
@@ -42,7 +42,7 @@
* @author Sean C. Sullivan
* @author Stephen Colebourne
* @since 1.0
- * @version $Id: NestableDelegate.java,v 1.23 2004/02/18 22:54:04 ggregory Exp $
+ * @version $Id$
*/
public class NestableDelegate implements Serializable
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.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/util/NestableError.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableError.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableError.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableError.java Sat Feb 11 21:50:03 2006
@@ -25,7 +25,7 @@
*
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
* @since 1.0
- * @version $Id: NestableError.java,v 1.8 2004/02/18 22:54:04 ggregory Exp $
+ * @version $Id$
*/
public class NestableError extends Error implements Nestable
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableError.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableError.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/util/NestableException.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableException.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableException.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableException.java Sat Feb 11 21:50:03 2006
@@ -97,7 +97,7 @@
* @author <a href="mailto:knielsen@apache.org">Kasper Nielsen</a>
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @since 1.0
- * @version $Id: NestableException.java,v 1.12 2004/08/04 18:41:09 ggregory Exp $
+ * @version $Id$
*/
public class NestableException extends Exception implements Nestable
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableException.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/util/NestableRuntimeException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableRuntimeException.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/util/NoDuplicateKeysMap.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.java Sat Feb 11 21:50:03 2006
@@ -1,54 +1,54 @@
-/*
- * Copyright 2005 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.util;
-
-
-import java.util.HashMap;
-
-
-/**
- * A Map implementation derived from HashMap that only overrides a single method
- * put() in order to prevent duplicate keyed entries to be added.
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public class NoDuplicateKeysMap extends HashMap
-{
- /**
- * Overrides java.util.Map.put(java.lang.Object, java.lang.Object) to
- * prevent duplicate keys.
- *
- * @see java.util.Map#put(java.lang.Object, java.lang.Object)
- */
- public Object put( Object key, Object value ) throws IllegalArgumentException
- {
- if ( containsKey( key ) )
- {
- throw new IllegalArgumentException( "Adding duplicate keys is not permitted." );
- }
- else
- {
- return super.put( key, value );
- }
- }
-
- // add a serial version uid, so that if we change things in the future
- // without changing the format, we can still deserialize properly.
- private static final long serialVersionUID = 5107433500719957457L;
-}
+/*
+ * Copyright 2005 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.util;
+
+
+import java.util.HashMap;
+
+
+/**
+ * A Map implementation derived from HashMap that only overrides a single method
+ * put() in order to prevent duplicate keyed entries to be added.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class NoDuplicateKeysMap extends HashMap
+{
+ /**
+ * Overrides java.util.Map.put(java.lang.Object, java.lang.Object) to
+ * prevent duplicate keys.
+ *
+ * @see java.util.Map#put(java.lang.Object, java.lang.Object)
+ */
+ public Object put( Object key, Object value ) throws IllegalArgumentException
+ {
+ if ( containsKey( key ) )
+ {
+ throw new IllegalArgumentException( "Adding duplicate keys is not permitted." );
+ }
+ else
+ {
+ return super.put( key, value );
+ }
+ }
+
+ // add a serial version uid, so that if we change things in the future
+ // without changing the format, we can still deserialize properly.
+ private static final long serialVersionUID = 5107433500719957457L;
+}
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.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/util/ObjectUtils.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ObjectUtils.java?rev=377135&r1=377134&r2=377135&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ObjectUtils.java (original)
+++ directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ObjectUtils.java Sat Feb 11 21:50:03 2006
@@ -36,7 +36,7 @@
* @author Gary Gregory
* @author Mario Winterer
* @since 1.0
- * @version $Id: ObjectUtils.java,v 1.24 2004/06/01 21:08:48 scolebourne Exp $
+ * @version $Id$
*/
public class ObjectUtils
{
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ObjectUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: directory/sandbox/akarasulu/rc1/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/ObjectUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 11 21:50:03 2006
@@ -1 +1,4 @@
Rev
+Revision
+Date
+Id