directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r185062 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
Date Mon, 06 Jun 2005 22:23:15 GMT
Author: elecharny
Date: Mon Jun  6 15:23:14 2005
New Revision: 185062

URL: http://svn.apache.org/viewcvs?rev=185062&view=rev
Log:
Added a method that returns a SearchResultPOJO directly, avoiding a cast.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java?rev=185062&r1=185061&r2=185062&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
Mon Jun  6 15:23:14 2005
@@ -127,6 +127,17 @@
     }
 
     /**
+     * Get a SearchRequest POJO, assuming that the caller knows that
+     * it is the LdapMessage exact type.
+     *
+     * @return Returns the SearchRequest POJO.
+     */
+    public SearchRequestPOJO getSearchRequest()
+    {
+        return (SearchRequestPOJO)protocolOp;
+    }
+
+    /**
      * Set the ProtocolOP
      *
      * @param protocolOp The protocolOp to set.



Mime
View raw message