directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 9672 - incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder
Date Mon, 22 Mar 2004 10:33:54 GMT
Author: akarasulu
Date: Mon Mar 22 02:33:54 2004
New Revision: 9672

Added:
   incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManagerMonitor.java
Modified:
   incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManager.java
Log:
added service methods and monitor

Modified: incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManager.java
==============================================================================
--- incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManager.java
(original)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManager.java
Mon Mar 22 02:33:54 2004
@@ -16,6 +16,9 @@
  */
 package org.apache.eve.encoder ;
 
+import org.apache.commons.codec.EncoderException ;
+
+import org.apache.ldap.common.message.Response ;
 
 /**
  *
@@ -25,5 +28,12 @@
  */
 public interface EncoderManager
 {
-    void dummy() ;
+
+    /**
+     * Synchronously encodes an LDAPv3 protocol Response message into a byte
+     * buffer that can be written to a Stream as an BER encoded PDU.
+     *
+     * @param a_response the LDAP Response message to be encoded.
+     */
+    public byte [] encode( Response a_response ) throws EncoderException ;
 }

Added: incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManagerMonitor.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/spi/src/java/org/apache/eve/encoder/EncoderManagerMonitor.java
Mon Mar 22 02:33:54 2004
@@ -0,0 +1,35 @@
+/*
+ *   Copyright 2004 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.eve.encoder ;
+
+import java.util.EventObject;
+
+
+/**
+ * Monitor for the EncoderManager.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface EncoderManagerMonitor
+{
+    void failedOnInform( EncoderManager manager, EventObject event,
+                         Throwable t ) ;
+    void failedOnEncode( EncoderManager manager, EventObject event,
+                         Throwable t ) ;
+}

Mime
View raw message