Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 93267 invoked from network); 6 Sep 2006 16:38:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2006 16:38:01 -0000 Received: (qmail 8980 invoked by uid 500); 6 Sep 2006 16:38:01 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 8936 invoked by uid 500); 6 Sep 2006 16:38:01 -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 8925 invoked by uid 99); 6 Sep 2006 16:38:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 09:38:01 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 09:38:00 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id E5E7A1A981A; Wed, 6 Sep 2006 09:37:39 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r440776 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java Date: Wed, 06 Sep 2006 16:37:39 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060906163739.E5E7A1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Wed Sep 6 09:37:38 2006 New Revision: 440776 URL: http://svn.apache.org/viewvc?view=rev&rev=440776 Log: Modified the inheritence scheme : we now inherit from MessageDecorator. Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java?view=diff&rev=440776&r1=440775&r2=440776 ============================================================================== --- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java (original) +++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/messages/bind/BindRequestDecorator.java Wed Sep 6 09:37:38 2006 @@ -21,6 +21,9 @@ import javax.naming.Name; +import org.apache.directory.shared.ldap.messages.Message; +import org.apache.directory.shared.ldap.messages.MessageDecorator; + /** * A abstract decorator for the BindRequest object. Implements * all methods from the BindRequest real object, rerouting them @@ -32,19 +35,17 @@ * @author Apache Directory Project * */ -public abstract class BindRequestDecorator implements BindRequest +public abstract class BindRequestDecorator extends MessageDecorator implements BindRequest { - /** A reference to the decorated object */ - private BindRequest bindRequest; - /** - * Creates a new BindRequestDecorator object. + * Creates a new BindRequestDecorator object. The storage + * of the decorated object is delegated to the super class * * @param the associated BindRequest object */ - public BindRequestDecorator( BindRequest bindRequest ) + public BindRequestDecorator( Message message ) { - this.bindRequest = bindRequest; + super( message ); } /** @@ -53,7 +54,7 @@ */ public BindRequest getBindRequest() { - return bindRequest; + return (BindRequest)message; } /** @@ -61,9 +62,9 @@ * * @return The user authentication */ - public AuthenticationOperation getAuthentication() + public Authentication getAuthentication() { - return bindRequest.getAuthentication(); + return ((BindRequest)message).getAuthentication(); } /** @@ -71,9 +72,9 @@ * * @param authentication The user authentication */ - public void setAuthentication( AuthenticationOperation authentication ) + public void setAuthentication( Authentication authentication ) { - bindRequest.setAuthentication( authentication ); + ((BindRequest)message).setAuthentication( authentication ); } /** @@ -83,7 +84,7 @@ */ public Name getName() { - return bindRequest.getName(); + return ((BindRequest)message).getName(); } @@ -95,7 +96,7 @@ */ public void setName( Name name ) { - bindRequest.setName( name ); + ((BindRequest)message).setName( name ); } /** @@ -105,7 +106,7 @@ */ public int getVersion() { - return bindRequest.getVersion(); + return ((BindRequest)message).getVersion(); } /** @@ -115,7 +116,7 @@ */ public boolean isLdapV3() { - return bindRequest.isLdapV3(); + return ((BindRequest)message).isLdapV3(); } /** @@ -125,6 +126,6 @@ */ public void setVersion( int version ) { - bindRequest.setVersion( version ); + ((BindRequest)message).setVersion( version ); } }