directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209525 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResponse.java
Date Wed, 06 Jul 2005 21:50:07 GMT
Author: elecharny
Date: Wed Jul  6 14:50:07 2005
New Revision: 209525

URL: http://svn.apache.org/viewcvs?rev=209525&view=rev
Log:
Renammed the Response class to LdapResponse

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

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResponse.java?rev=209525&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResponse.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResponse.java
Wed Jul  6 14:50:07 2005
@@ -0,0 +1,73 @@
+/*
+ *   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;
+
+/**
+ * A generic LdapResponse Object. It will contain the LdapResult.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class LdapResponse extends LdapMessage
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The LdapResult element */
+    private LdapResult ldapResult;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new LdapResponse object.
+     */
+    public LdapResponse()
+    {
+        super( );
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the LdapResult
+     *
+     * @return Returns the ldapResult.
+     */
+    public LdapResult getLdapResult()
+    {
+        return ldapResult;
+    }
+
+    /**
+     * Set the ldap result
+     * 
+     * @param ldapResult The ldapResult to set.
+     */
+    public void setLdapResult( LdapResult ldapResult )
+    {
+        this.ldapResult = ldapResult;
+    }
+    
+    /**
+     * Get a String representation of an Response
+     *
+     * @return An Response String 
+     */
+    public String toString()
+    {
+        return ldapResult.toString();
+    }
+    
+}



Mime
View raw message