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/05/24 08:34:29 UTC
svn commit: r178096 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Author: elecharny
Date: Mon May 23 23:34:28 2005
New Revision: 178096
URL: http://svn.apache.org/viewcvs?rev=178096&view=rev
Log:
Added UnbindRequest states
Modified:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java?rev=178096&r1=178095&r2=178096&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java Mon May 23 23:34:28 2005
@@ -147,6 +147,18 @@
/** The bind request last state */
public static int LAST_BIND_REQUEST_STATE = 20;
+ // UnBindRequest ============================================================
+ /** The unbind request init state */
+ private static int UNBIND_REQUEST_STATE = 0;
+
+ /** The UnBindRequest Tag */
+ public static int UNBIND_REQUEST_TAG = 0;
+
+ /** UNBIND_REQUEST Length */
+ public static int UNBIND_REQUEST_LENGTH = 1;
+
+ /** The unbind request last state */
+ public static int LAST_UNBIND_REQUEST_STATE = 2;
// Controls ===============================================================
/** The ldap control init state */
@@ -323,6 +335,12 @@
/** BindResponse number */
public static final int BIND_RESPONSE_GRAMMAR = 4;
+ /** UnBindRequest Grammar */
+ public static final int UNBIND_REQUEST_GRAMMAR_SWITCH = 0x0600;
+
+ /** UnBindRequest number */
+ public static final int UNBIND_REQUEST_GRAMMAR = 5;
+
/** A string representation of grammars */
private static String[] GrammarSwitchString =
new String[]
@@ -331,7 +349,8 @@
"LDAP_RESULT_GRAMMAR_SWITCH",
"LDAP_CONTROL_GRAMMAR_SWITCH",
"BIND_REQUEST_GRAMMAR_SWITCH",
- "BIND_RESPONSE_GRAMMAR_SWITCH"
+ "BIND_RESPONSE_GRAMMAR_SWITCH",
+ "UNBIND_REQUEST_GRAMMAR_SWITCH"
};
/** A string representation of all the states */
@@ -431,6 +450,15 @@
"LAST_STATE"
};
+ /** A string representation of all the Unbind Request states */
+ private static String[] UnBindRequestString =
+ new String[]
+ {
+ "UNBIND_REQUEST_TAG",
+ "UNBIND_REQUEST_LENGTH",
+ "UNBIND_REQUEST_VALUE",
+ };
+
/** The instance */
private static LdapStatesEnum instance = new LdapStatesEnum();
@@ -490,6 +518,9 @@
case BIND_RESPONSE_GRAMMAR :
return ( ( state == -1 ) ? "END_STATE" : BindResponseString[state] );
+
+ case UNBIND_REQUEST_GRAMMAR :
+ return ( ( state == -1 ) ? "END_STATE" : UnBindRequestString[state] );
default :
return "UNKNOWN";