directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208996 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedResponse.java
Date Sun, 03 Jul 2005 22:32:20 GMT
Author: elecharny
Date: Sun Jul  3 15:32:19 2005
New Revision: 208996

URL: http://svn.apache.org/viewcvs?rev=208996&view=rev
Log:
Added the ExtendedResponse pojo

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

Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedResponse.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedResponse.java?rev=208996&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedResponse.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedResponse.java
Sun Jul  3 15:32:19 2005
@@ -0,0 +1,93 @@
+/*
+ *   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.primitives.OID;
+import org.apache.asn1.primitives.OctetString;
+
+
+/**
+ * A ExtendedResponse Message. Its syntax is :
+ *   ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
+ *              COMPONENTS OF LDAPResult,
+ *              responseName     [10] LDAPOID OPTIONAL,
+ *              response         [11] OCTET STRING OPTIONAL }
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ExtendedResponse extends Response
+{
+    //~ Instance fields ----------------------------------------------------------------------------
+
+    /** The name */
+    private OID name;
+
+    /** The response */
+    private OctetString response;
+
+    //~ Constructors -------------------------------------------------------------------------------
+
+    /**
+     * Creates a new ExtendedRequest object.
+     */
+    public ExtendedResponse()
+    {
+        super( );
+    }
+
+    //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the extended response name
+     *
+     * @return Returns the name.
+     */
+    public String getName()
+    {
+        return ( ( name == null ) ? "" : name.toString() );
+    }
+
+    /**
+     * Set the extended response name
+     *
+     * @param name The name to set.
+     */
+    public void setName( OID name )
+    {
+        this.name = name;
+    }
+
+    /**
+     * Get the extended response
+     *
+     * @return Returns the response.
+     */
+    public OctetString getResponse()
+    {
+        return response;
+    }
+
+    /**
+     * Set the extended response
+     *
+     * @param value The response to set.
+     */
+    public void setResponse( OctetString response )
+    {
+        this.response = response;
+    }
+}



Mime
View raw message