Update the ClientConnection.disconnect() method variant that takes a message
ID and optional set of arguments so that it does not attempt to get the
corresponding message string if the message ID is invalid (e.g., -1) and
therefore no message is to be sent to the client or written to the server log.
OpenDS Issue Number: 1312
| | |
| | | boolean sendNotification, |
| | | int messageID, Object... arguments) |
| | | { |
| | | String message = getMessage(messageID, arguments); |
| | | disconnect(disconnectReason, sendNotification, message, |
| | | messageID); |
| | | if (messageID <= 0) |
| | | { |
| | | disconnect(disconnectReason, sendNotification, null, -1); |
| | | } |
| | | else |
| | | { |
| | | String message = getMessage(messageID, arguments); |
| | | disconnect(disconnectReason, sendNotification, message, |
| | | messageID); |
| | | } |
| | | } |
| | | |
| | | |