You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/07/03 23:42:24 UTC
svn commit: r208984 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java
Author: elecharny
Date: Sun Jul 3 14:42:24 2005
New Revision: 208984
URL: http://svn.apache.org/viewcvs?rev=208984&view=rev
Log:
Added the ExtendedRequest pojo
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java
Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java?rev=208984&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java (added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ExtendedRequest.java Sun Jul 3 14:42:24 2005
@@ -0,0 +1,92 @@
+/*
+ * 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 ExtendedRequest Message. Its syntax is :
+ * ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
+ * requestName [0] LDAPOID,
+ * requestValue [1] OCTET STRING OPTIONAL }
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ExtendedRequest extends LdapMessage
+{
+ //~ Instance fields ----------------------------------------------------------------------------
+
+ /** The name */
+ private OID name;
+
+ /** The value */
+ private OctetString value;
+
+ //~ Constructors -------------------------------------------------------------------------------
+
+ /**
+ * Creates a new ExtendedRequest object.
+ */
+ public ExtendedRequest()
+ {
+ super( );
+ }
+
+ //~ Methods ------------------------------------------------------------------------------------
+
+ /**
+ * Get the extended request name
+ *
+ * @return Returns the name.
+ */
+ public String getName()
+ {
+ return ( ( name == null ) ? "" : name.toString() );
+ }
+
+ /**
+ * Set the extended request name
+ *
+ * @param name The name to set.
+ */
+ public void setName( OID name )
+ {
+ this.name = name;
+ }
+
+ /**
+ * Get the extended request value
+ *
+ * @return Returns the value.
+ */
+ public OctetString getValue()
+ {
+ return value;
+ }
+
+ /**
+ * Set the extended request value
+ *
+ * @param value The value to set.
+ */
+ public void setValue( OctetString value )
+ {
+ this.value = value;
+ }
+}