directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209131 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
Date Mon, 04 Jul 2005 22:31:07 GMT
Author: elecharny
Date: Mon Jul  4 15:31:05 2005
New Revision: 209131

URL: http://svn.apache.org/viewcvs?rev=209131&view=rev
Log:
- Fixed a NPE in the toString() method
- Added accessor for AddResponse and AbandonRequest elements

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java?rev=209131&r1=209130&r2=209131&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessage.java
Mon Jul  4 15:31:05 2005
@@ -220,6 +220,28 @@
     }
 
     /**
+     * Get a AddResponse ldapObject, assuming that the caller knows that
+     * it is the LdapMessage exact type.
+     *
+     * @return Returns the AddResponse ldapObject.
+     */
+    public AddResponse getAddResponse()
+    {
+        return ( AddResponse ) protocolOp;
+    }
+
+    /**
+     * Get a AbandonRequest ldapObject, assuming that the caller knows that
+     * it is the LdapMessage exact type.
+     *
+     * @return Returns the AbandonRequest ldapObject.
+     */
+    public AbandonRequest getAbandonRequest()
+    {
+        return ( AbandonRequest ) protocolOp;
+    }
+
+    /**
      * Get a ExtendedRequest ldapObject, assuming that the caller knows that
      * it is the LdapMessage exact type.
      *
@@ -293,7 +315,7 @@
         StringBuffer sb = new StringBuffer();
 
         sb.append( "LdapMessage\n" );
-        sb.append( "    messageId : " ).append( messageId ).append( '\n' );
+        sb.append( "    message Id : " ).append( messageId ).append( '\n' );
         sb.append( protocolOp.toString() ).append( '\n' );
 
         if ( controls != null )



Mime
View raw message