directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1072824 - in /directory/shared/branches/akarasulu: ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/ ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ ldap-extras/codec/src/main/j...
Date Mon, 21 Feb 2011 02:23:50 GMT
Author: akarasulu
Date: Mon Feb 21 02:23:49 2011
New Revision: 1072824

URL: http://svn.apache.org/viewvc?rev=1072824&view=rev
Log:
DISHARED-86: extracted interfaces for Cancel extOp and created base class for extended request
impl

Added:
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelRequest.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelResponse.java
    directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/AbstractExtendedRequest.java
Modified:
    directory/shared/branches/akarasulu/ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapCodecService.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelRequest.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelResponse.java
    directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CancelFactory.java
    directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImpl.java

Modified: directory/shared/branches/akarasulu/ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapCodecService.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapCodecService.java
(original)
+++ directory/shared/branches/akarasulu/ldap-codec-standalone/src/main/java/org/apache/directory/shared/ldap/codec/standalone/StandaloneLdapCodecService.java
Mon Feb 21 02:23:49 2011
@@ -783,6 +783,9 @@ public class StandaloneLdapCodecService 
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public ExtendedRequest<?> fromJndi( javax.naming.ldap.ExtendedRequest jndiRequest
) throws DecoderException
     {
         // TODO Auto-generated method stub
@@ -790,6 +793,9 @@ public class StandaloneLdapCodecService 
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
     public javax.naming.ldap.ExtendedRequest toJndi( ExtendedRequest<?> modelRequest
) throws EncoderException
     {
         // TODO Auto-generated method stub

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
Mon Feb 21 02:23:49 2011
@@ -36,10 +36,10 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncModifyDnFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory;
-import org.apache.directory.shared.ldap.extras.extended.CancelRequest;
 import org.apache.directory.shared.ldap.extras.extended.CertGenerationRequest;
 import org.apache.directory.shared.ldap.extras.extended.GracefulDisconnect;
 import org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest;
+import org.apache.directory.shared.ldap.extras.extended.ICancelRequest;
 import org.apache.directory.shared.ldap.extras.extended.StoredProcedureRequest;
 import org.apache.directory.shared.ldap.extras.extended.ads_impl.CancelFactory;
 import org.apache.directory.shared.ldap.extras.extended.ads_impl.CertGenerationFactory;
@@ -150,7 +150,7 @@ public class ExtrasBundleActivator imple
         codec.unregisterControl( SyncStateValue.OID );
         codec.unregisterControl( PasswordPolicy.OID );
         
-        codec.unregisterExtendedRequest( CancelRequest.EXTENSION_OID );
+        codec.unregisterExtendedRequest( ICancelRequest.EXTENSION_OID );
         codec.unregisterExtendedRequest( CertGenerationRequest.EXTENSION_OID );
         codec.unregisterExtendedRequest( GracefulShutdownRequest.EXTENSION_OID );
         codec.unregisterExtendedRequest( StoredProcedureRequest.EXTENSION_OID );

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelRequest.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelRequest.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelRequest.java
Mon Feb 21 02:23:49 2011
@@ -20,18 +20,7 @@
 package org.apache.directory.shared.ldap.extras.extended;
 
 
-import javax.naming.NamingException;
-import javax.naming.ldap.ExtendedResponse;
-
-import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.i18n.I18n;
-import org.apache.directory.shared.ldap.extras.extended.ads_impl.Cancel;
-import org.apache.directory.shared.ldap.extras.extended.ads_impl.CancelDecoder;
-import org.apache.directory.shared.ldap.model.message.ExtendedRequestImpl;
-import org.apache.directory.shared.ldap.model.message.ResultResponse;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import org.apache.directory.shared.ldap.model.message.AbstractExtendedRequest;
 
 
 /**
@@ -46,21 +35,14 @@ import org.slf4j.LoggerFactory;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class CancelRequest extends ExtendedRequestImpl
+public class CancelRequest extends AbstractExtendedRequest<ICancelResponse> implements
ICancelRequest
 {
     /** The serial version UUID */
     private static final long serialVersionUID = 1L;
 
-    /** A logger for this class */
-    private static final Logger LOG = LoggerFactory.getLogger( CancelRequest.class );
-
     /** The cancelId of the request to be canceled */
     private int cancelId;
 
-    /** The requestName for this extended request */
-    public static final String EXTENSION_OID = "1.3.6.1.1.8";
-
-
     /**
      * Creates a new instance of CancelRequest.
      *
@@ -84,99 +66,20 @@ public class CancelRequest extends Exten
         setRequestName( EXTENSION_OID );
     }
 
-
-    /**
-     * Sets the extended request's <b>requestValue</b> portion of the PDU.
-     * 
-     * @param payload byte array of data encapsulating ext. req. parameters
-     */
-    public void setRequestValue( byte[] requestValue )
-    {
-        CancelDecoder decoder = new CancelDecoder();
-
-        try
-        {
-            Cancel cancel = ( Cancel ) decoder.decode( requestValue );
-
-            if ( requestValue != null )
-            {
-                this.requestValue = new byte[requestValue.length];
-                System.arraycopy( requestValue, 0, this.requestValue, 0, requestValue.length
);
-            }
-            else
-            {
-                this.requestValue = null;
-            }
-
-            this.cancelId = cancel.getCancelId();
-        }
-        catch ( DecoderException e )
-        {
-            LOG.error( I18n.err( I18n.ERR_04165 ), e );
-            throw new RuntimeException( e );
-        }
-    }
-
-
-    public ExtendedResponse createExtendedResponse( String id, byte[] berValue, int offset,
int length )
-        throws NamingException
-    {
-        return ( ExtendedResponse ) getResultResponse();
-    }
-
     
-    /**
-     *  @return The id of the Message to cancel.
-     */
     public int getCancelId()
     {
         return cancelId;
     }
     
     
-    /**
-     * Sets the message to cancel by id.
-     *
-     * @param cancelId The id of the message to cancel.
-     */
     public void setCancelId( int cancelId )
     {
         this.cancelId = cancelId;
-        
-        // clear the request value if it was previously computed for the old value
-        if ( requestValue != null )
-        {
-            requestValue = null;
-        }
     }
     
 
-    /**
-     * {@inheritDoc}
-     */
-    public byte[] getRequestValue()
-    {
-        if ( requestValue == null )
-        {
-            try
-            {
-                Cancel cancel = new Cancel();
-                cancel.setCancelId( this.cancelId );
-
-                requestValue = cancel.encode().array();
-            }
-            catch ( EncoderException e )
-            {
-                LOG.error( I18n.err( I18n.ERR_04164 ), e );
-                throw new RuntimeException( e );
-            }
-        }
-
-        return requestValue;
-    }
-
-
-    public ResultResponse getResultResponse()
+    public ICancelResponse getResultResponse()
     {
         if ( response == null )
         {

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelResponse.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelResponse.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CancelResponse.java
Mon Feb 21 02:23:49 2011
@@ -32,7 +32,7 @@ import org.apache.directory.shared.util.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class CancelResponse extends ExtendedResponseImpl
+public class CancelResponse extends ExtendedResponseImpl implements ICancelResponse
 {
     /** The serial version UUID */
     private static final long serialVersionUID = 1L;
@@ -76,7 +76,7 @@ public class CancelResponse extends Exte
 
     public CancelResponse()
     {
-        super( CancelRequest.EXTENSION_OID );
+        super( ICancelRequest.EXTENSION_OID );
         super.getLdapResult().setMatchedDn( null );
         super.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
     }

Added: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelRequest.java?rev=1072824&view=auto
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelRequest.java
(added)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelRequest.java
Mon Feb 21 02:23:49 2011
@@ -0,0 +1,50 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.extras.extended;
+
+import org.apache.directory.shared.ldap.model.message.ExtendedRequest;
+
+
+/**
+ * The CancelRequest interface.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public interface ICancelRequest extends ExtendedRequest<ICancelResponse>
+{
+
+    /** The requestName for this extended request */
+    public static final String EXTENSION_OID = "1.3.6.1.1.8";
+
+
+    /**
+     *  @return The id of the Message to cancel.
+     */
+    public abstract int getCancelId();
+
+
+    /**
+     * Sets the message to cancel by id.
+     *
+     * @param cancelId The id of the message to cancel.
+     */
+    public abstract void setCancelId( int cancelId );
+
+}
\ No newline at end of file

Added: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelResponse.java?rev=1072824&view=auto
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelResponse.java
(added)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ICancelResponse.java
Mon Feb 21 02:23:49 2011
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.extras.extended;
+
+
+import org.apache.directory.shared.ldap.model.message.ExtendedResponse;
+
+
+/**
+ * The interface for Cancel ExtendedResponses.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public interface ICancelResponse extends ExtendedResponse
+{
+
+}
\ No newline at end of file

Modified: directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CancelFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CancelFactory.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CancelFactory.java
(original)
+++ directory/shared/branches/akarasulu/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CancelFactory.java
Mon Feb 21 02:23:49 2011
@@ -24,6 +24,8 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.ldap.codec.api.ExtendedRequestFactory;
 import org.apache.directory.shared.ldap.extras.extended.CancelRequest;
 import org.apache.directory.shared.ldap.extras.extended.CancelResponse;
+import org.apache.directory.shared.ldap.extras.extended.ICancelRequest;
+import org.apache.directory.shared.ldap.extras.extended.ICancelResponse;
 
 
 /**
@@ -39,14 +41,14 @@ public class CancelFactory implements Ex
      */
     public String getOid()
     {
-        return CancelRequest.EXTENSION_OID;
+        return ICancelRequest.EXTENSION_OID;
     }
 
     
     /**
      * {@inheritDoc}
      */
-    public CancelRequest newRequest()
+    public ICancelRequest newRequest()
     {
         return new CancelRequest();
     }
@@ -55,9 +57,9 @@ public class CancelFactory implements Ex
     /**
      * {@inheritDoc}
      */
-    public CancelResponse newResponse( byte[] encodedValue ) throws DecoderException
+    public ICancelResponse newResponse( byte[] encodedValue ) throws DecoderException
     {
-        CancelResponse response = new CancelResponse();
+        ICancelResponse response = new CancelResponse();
         response.setResponseValue( encodedValue );
         return response;
     }

Added: directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/AbstractExtendedRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/AbstractExtendedRequest.java?rev=1072824&view=auto
==============================================================================
--- directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/AbstractExtendedRequest.java
(added)
+++ directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/AbstractExtendedRequest.java
Mon Feb 21 02:23:49 2011
@@ -0,0 +1,191 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.model.message;
+
+
+/**
+ * ExtendedRequest implementation.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public abstract class AbstractExtendedRequest<R extends ExtendedResponse> extends AbstractRequest
implements ExtendedRequest<R>
+{
+    static final long serialVersionUID = 7916990159044177480L;
+
+    /** Extended request's Object Identifier or <b>requestName</b> */
+    private String oid;
+
+    /** The associated response */
+    protected R response;
+
+
+    /**
+     * Creates an ExtendedRequest implementing object used to perform
+     * extended protocol operation on the server.
+     */
+    public AbstractExtendedRequest()
+    {
+        super( -1, TYPE, true );
+    }
+
+
+    /**
+     * Creates an ExtendedRequest implementing object used to perform
+     * extended protocol operation on the server.
+     * 
+     * @param id the sequential message identifier
+     */
+    public AbstractExtendedRequest( final int id )
+    {
+        super( id, TYPE, true );
+    }
+
+
+    // -----------------------------------------------------------------------
+    // ExtendedRequest Interface Method Implementations
+    // -----------------------------------------------------------------------
+
+
+    /**
+     * Gets the Object Identifier corresponding to the extended request type.
+     * This is the <b>requestName</b> portion of the ext. req. PDU.
+     * 
+     * @return the dotted-decimal representation as a String of the OID
+     */
+    public String getRequestName()
+    {
+        return oid;
+    }
+
+    
+    /**
+     * Sets the Object Identifier corresponding to the extended request type.
+     * 
+     * @param newOid the dotted-decimal representation as a String of the OID
+     */
+    public void setRequestName( String newOid )
+    {
+        this.oid = newOid;
+    }
+
+
+    // ------------------------------------------------------------------------
+    // SingleReplyRequest Interface Method Implementations
+    // ------------------------------------------------------------------------
+
+    /**
+     * Gets the protocol response message type for this request which produces
+     * at least one response.
+     * 
+     * @return the message type of the response.
+     */
+    public MessageTypeEnum getResponseType()
+    {
+        return RESP_TYPE;
+    }
+
+
+    /**
+     * The result containing response for this request.
+     * 
+     * @return the result containing response for this request
+     */
+    public abstract R getResultResponse();
+
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public int hashCode()
+    {
+        int hash = 37;
+        if ( oid != null )
+        {
+            hash = hash * 17 + oid.hashCode();
+        }
+        hash = hash * 17 + super.hashCode();
+
+        return hash;
+    }
+
+
+    /**
+     * Checks to see if an object equals this ExtendedRequest.
+     * 
+     * @param obj the object to be checked for equality
+     * @return true if the obj equals this ExtendedRequest, false otherwise
+     */
+    public boolean equals( Object obj )
+    {
+        if ( obj == this )
+        {
+            return true;
+        }
+
+        if ( !super.equals( obj ) )
+        {
+            return false;
+        }
+
+        if ( !( obj instanceof ExtendedRequest ) )
+        {
+            return false;
+        }
+
+        ExtendedRequest<?> req = ( ExtendedRequest<?> ) obj;
+
+        if ( ( oid != null ) && ( req.getRequestName() == null ) )
+        {
+            return false;
+        }
+
+        if ( ( oid == null ) && ( req.getRequestName() != null ) )
+        {
+            return false;
+        }
+
+        if ( ( oid != null ) && ( req.getRequestName() != null ) && !oid.equals(
req.getRequestName() ) )
+        {
+            return false;
+        }
+        
+        return true;
+    }
+
+
+    /**
+     * Get a String representation of an Extended Request
+     * 
+     * @return an Extended Request String
+     */
+    public String toString()
+    {
+        StringBuffer sb = new StringBuffer();
+
+        sb.append( "    Extended request\n" );
+        sb.append( "        Request name : '" ).append( oid ).append( "'\n" );
+
+        // The controls
+        sb.append( super.toString() );
+
+        return super.toString( sb.toString() );
+    }
+}

Modified: directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImpl.java?rev=1072824&r1=1072823&r2=1072824&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImpl.java
(original)
+++ directory/shared/branches/akarasulu/ldap-model/src/main/java/org/apache/directory/shared/ldap/model/message/ExtendedRequestImpl.java
Mon Feb 21 02:23:49 2011
@@ -25,7 +25,7 @@ package org.apache.directory.shared.ldap
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ExtendedRequestImpl extends AbstractRequest implements ExtendedRequest<ExtendedResponse>
+public class ExtendedRequestImpl extends AbstractRequest implements ExtendedRequest<ExtendedResponseImpl>
 {
     static final long serialVersionUID = 7916990159044177480L;
 
@@ -33,7 +33,7 @@ public class ExtendedRequestImpl extends
     private String oid;
 
     /** The associated response */
-    protected ExtendedResponse response;
+    protected ExtendedResponseImpl response;
 
 
     /**
@@ -107,13 +107,13 @@ public class ExtendedRequestImpl extends
      * 
      * @return the result containing response for this request
      */
-    public ExtendedResponse getResultResponse()
+    public ExtendedResponseImpl getResultResponse()
     {
         if ( response == null )
         {
             response = new ExtendedResponseImpl( getMessageId() );
         }
-
+        
         return response;
     }
 



Mime
View raw message