directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r189659 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
Date Wed, 08 Jun 2005 22:07:29 GMT
Author: elecharny
Date: Wed Jun  8 15:07:29 2005
New Revision: 189659

URL: http://svn.apache.org/viewcvs?rev=189659&view=rev
Log:
Added the two method getGrammarName

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java?rev=189659&r1=189658&r2=189659&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoStatesEnum.java
Wed Jun  8 15:07:29 2005
@@ -16,6 +16,7 @@
  */
 package org.apache.asn1.spnego.codec.grammars;
 
+import org.apache.asn1.ber.grammar.IGrammar;
 import org.apache.asn1.ber.grammar.IStates;
 
 
@@ -567,4 +568,32 @@
             return "UNKNOWN";
         }
     }
+
+    /**
+     * Get the grammar name
+     * @param The grammar code
+     * @return The grammar name
+     */
+    public String getGrammarName(int grammar)
+    {
+        return "SPNEGO_GRAMMAR"; 
+    }
+    
+    /**
+     * Get the grammar name
+     * @param The grammar class
+     * @return The grammar name
+     */
+    public String getGrammarName(IGrammar grammar)
+    {
+        if (grammar instanceof SpnegoGrammar)  
+        {
+            return "SPNEGO_GRAMMAR";
+        }
+        else
+        {
+            return "UNKNOWN";
+        }
+    }
+    
 }



Mime
View raw message