Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2E2A1200BD0 for ; Wed, 30 Nov 2016 18:55:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2CB67160B13; Wed, 30 Nov 2016 17:55:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7965C160B06 for ; Wed, 30 Nov 2016 18:55:01 +0100 (CET) Received: (qmail 86304 invoked by uid 500); 30 Nov 2016 17:54:57 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 86295 invoked by uid 99); 30 Nov 2016 17:54:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2016 17:54:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2DA3FC1372 for ; Wed, 30 Nov 2016 17:54:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5PZLrduyOKGt for ; Wed, 30 Nov 2016 17:54:55 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 98CF95F297 for ; Wed, 30 Nov 2016 17:54:54 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9FBB6E03A1 for ; Wed, 30 Nov 2016 17:54:53 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 52FF13A00EA for ; Wed, 30 Nov 2016 17:54:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1772098 - /directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java Date: Wed, 30 Nov 2016 17:54:52 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161130175453.52FF13A00EA@svn01-us-west.apache.org> archived-at: Wed, 30 Nov 2016 17:55:02 -0000 Author: elecharny Date: Wed Nov 30 17:54:52 2016 New Revision: 1772098 URL: http://svn.apache.org/viewvc?rev=1772098&view=rev Log: Added some missing javadoc Modified: directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java Modified: directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java?rev=1772098&r1=1772097&r2=1772098&view=diff ============================================================================== --- directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java (original) +++ directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/JndiUtils.java Wed Nov 30 17:54:52 2016 @@ -93,7 +93,14 @@ public final class JndiUtils } - // @TODO not really needed and can be moved out + /** + * Convert a LDAP API control to a JNDI control + * @param codec The LDAP API service to use + * @param control The control to convert + * @return A JNDI control + * @throws EncoderException If the conversion failed + */ + @Deprecated public static javax.naming.ldap.Control toJndiControl( LdapApiService codec, Control control ) throws EncoderException { @@ -101,7 +108,14 @@ public final class JndiUtils } - // @TODO not really needed and can be moved out + /** + * Convert some LDAP API controls to JNDI controls + * @param codec The LDAP API service to use + * @param controls The controls to convert + * @return Aarray of JNDI control + * @throws EncoderException If the conversion failed + */ + @Deprecated public static javax.naming.ldap.Control[] toJndiControls( LdapApiService codec, Control... controls ) throws EncoderException { @@ -124,7 +138,14 @@ public final class JndiUtils } - // @TODO not really needed and can be moved out + /** + * Convert a JNDI control to a LDAP API control + * @param codec The LDAP API service to use + * @param jndiControl The control to convert + * @return A LDAP API control + * @throws DecoderException If the conversion failed + */ + @Deprecated public static Control fromJndiControl( LdapApiService codec, javax.naming.ldap.Control jndiControl ) throws DecoderException { @@ -132,7 +153,14 @@ public final class JndiUtils } - // @TODO not really needed and can be moved out + /** + * Convert some JNDI controls to LDAP API controls + * @param codec The LDAP API service to use + * @param jndiControls The controls to convert + * @return An arrau of LDAP API control + * @throws DecoderException If the conversion failed + */ + @Deprecated public static Control[] fromJndiControls( LdapApiService codec, javax.naming.ldap.Control... jndiControls ) throws DecoderException { @@ -155,6 +183,12 @@ public final class JndiUtils } + /** + * Wraps a LDAP exception into a NaingException + * + * @param t The original exception + * @throws NamingException The wrapping JNDI exception + */ public static void wrap( Throwable t ) throws NamingException { if ( t instanceof NamingException )