commits@directory.apache.org
[Top] [All Lists]

svn commit: r208853 - /directory/sandbox/trunk/asn1-new-codec/src/java/o

Subject: svn commit: r208853 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java
From:
Date: Sat, 02 Jul 2005 18:03:41 -0000
Author: elecharny
Date: Sat Jul  2 11:03:39 2005
New Revision: 208853

URL: http://svn.apache.org/viewcvs?rev=208853&view=rev
Log:
Added the SearchResultReference POJO

Added:
    
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java

Added: 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java
URL: 
http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java?rev=208853&view=auto
==============================================================================
--- 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java
 (added)
+++ 
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java
 Sat Jul  2 11:03:39 2005
@@ -0,0 +1,66 @@
+/*
+ *   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.asn1.ldap.pojo;
+
+import org.apache.asn1.Asn1Object;
+import org.apache.asn1.ldap.codec.primitives.LdapURL;
+
+import java.util.ArrayList;
+
+/**
+ * A SearchResultReference Message. Its syntax is :
+ *   SearchResultReference ::= [APPLICATION 19] SEQUENCE OF LDAPURL
+ * 
+ * @author <a href="mailto:dev@xxxxxxxxxxxxxxxxxxxx";>Apache Directory 
Project</a>
+ */
+public class SearchResultReference extends Asn1Object
+{
+    //~ Instance fields 
----------------------------------------------------------------------------
+
+    /** The set of LdapURLs */
+    private ArrayList searchResultReferences;
+
+    //~ Constructors 
-------------------------------------------------------------------------------
+
+    /**
+     * Creates a new SearchResultEntry object.
+     */
+    public SearchResultReference()
+    {
+        super( );
+        searchResultReferences = new ArrayList();
+    }
+
+    //~ Methods 
------------------------------------------------------------------------------------
+
+    /**
+     * Add a new reference to the list.
+     */
+    public void addSearchResultReference(LdapURL searchResultReference)
+    {
+        searchResultReferences.add(searchResultReference);
+    }
+    
+    /**
+     * Get the list of references
+     * @return An ArrayList of SearchResultReferences
+     */
+    public ArrayList getSearchResultReferences()
+    {
+        return searchResultReferences;
+    }
+}


<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: r208853 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SearchResultReference.java, elecharny <=