mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

kenneth_suter
15.34.2007 cfc513043c5830b5a967733066068c7097b42e3c
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