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 2011/01/28 00:57:10 UTC
svn commit: r1064367 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
Author: akarasulu
Date: Thu Jan 27 23:57:10 2011
New Revision: 1064367
URL: http://svn.apache.org/viewvc?rev=1064367&view=rev
Log:
adding abandon request decorator
Added:
directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
Added: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java?rev=1064367&view=auto
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java (added)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AbandonRequestDecorator.java Thu Jan 27 23:57:10 2011
@@ -0,0 +1,75 @@
+/*
+ * 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.codec.decorators;
+
+
+import org.apache.directory.shared.ldap.model.message.AbandonRequest;
+import org.apache.directory.shared.ldap.model.message.AddRequest;
+
+
+/**
+ * A decorator for the AddRequest message
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class AbandonRequestDecorator extends RequestDecorator implements AbandonRequest
+{
+ /**
+ * Makes a AddRequest a MessageDecorator.
+ *
+ * @param decoratedMessage the decorated AddRequest
+ */
+ public AbandonRequestDecorator( AddRequest decoratedMessage )
+ {
+ super( decoratedMessage );
+ }
+
+
+ /**
+ * @return The decorated AddRequest
+ */
+ public AbandonRequest getAbandonRequest()
+ {
+ return ( AbandonRequest ) getDecoratedMessage();
+ }
+
+
+ //-------------------------------------------------------------------------
+ // The SearchResultReference methods
+ //-------------------------------------------------------------------------
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public int getAbandoned()
+ {
+ return getAbandonRequest().getAbandoned();
+ }
+
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setAbandoned( int requestId )
+ {
+ getAbandonRequest().setAbandoned( requestId );
+ }
+}