From cfc513043c5830b5a967733066068c7097b42e3c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opendj-sdk/opends/src/server/org/opends/server/extensions/NullConnectionSecurityProvider.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/extensions/NullConnectionSecurityProvider.java b/opendj-sdk/opends/src/server/org/opends/server/extensions/NullConnectionSecurityProvider.java
index b007350..ef52f6c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/extensions/NullConnectionSecurityProvider.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/extensions/NullConnectionSecurityProvider.java
@@ -43,11 +43,10 @@
import static org.opends.server.loggers.debug.DebugLogger.*;
import org.opends.server.loggers.debug.DebugTracer;
-import static org.opends.server.messages.ExtensionsMessages.*;
+import static org.opends.messages.ExtensionMessages.*;
import static org.opends.server.util.StaticUtils.*;
-
/**
* This class provides an implementation of a connection security provider that
* does not actually provide any security for the communication process. Any
@@ -292,7 +291,7 @@
// The connection has been closed by the client. Disconnect and
// return.
clientConnection.disconnect(DisconnectReason.CLIENT_DISCONNECT, false,
- -1);
+ null);
return false;
}
else if (bytesRead == 0)
@@ -321,7 +320,7 @@
// An error occurred while trying to read data from the client.
// Disconnect and return.
- clientConnection.disconnect(DisconnectReason.IO_ERROR, false, -1);
+ clientConnection.disconnect(DisconnectReason.IO_ERROR, false, null);
return false;
}
catch (Exception e)
@@ -333,8 +332,8 @@
// An unexpected error occurred. Disconnect and return.
clientConnection.disconnect(DisconnectReason.SERVER_ERROR, true,
- MSGID_NULL_SECURITY_PROVIDER_READ_ERROR,
- getExceptionMessage(e));
+ ERR_NULL_SECURITY_PROVIDER_READ_ERROR.get(
+ getExceptionMessage(e)));
return false;
}
}
@@ -374,7 +373,7 @@
{
// The client connection has been closed. Disconnect and return.
clientConnection.disconnect(DisconnectReason.CLIENT_DISCONNECT, false,
- -1);
+ null);
return false;
}
}
@@ -390,7 +389,7 @@
// An error occurred while trying to write data to the client. Disconnect
// and return.
- clientConnection.disconnect(DisconnectReason.IO_ERROR, false, -1);
+ clientConnection.disconnect(DisconnectReason.IO_ERROR, false, null);
return false;
}
catch (Exception e)
@@ -402,8 +401,8 @@
// An unexpected error occurred. Disconnect and return.
clientConnection.disconnect(DisconnectReason.SERVER_ERROR, true,
- MSGID_NULL_SECURITY_PROVIDER_WRITE_ERROR,
- getExceptionMessage(e));
+ ERR_NULL_SECURITY_PROVIDER_WRITE_ERROR.get(
+ getExceptionMessage(e)));
return false;
}
finally
--
Gitblit v1.10.0