| | |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DisconnectReason; |
| | | import org.opends.server.types.operation.*; |
| | | |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | /** |
| | |
| | | // This is fine. |
| | | break; |
| | | default: |
| | | throw new ConfigException(-1, "Invalid plugin type " + t + |
| | | " for the disconnect plugin."); |
| | | throw new ConfigException(Message.raw("Invalid plugin type " + t + |
| | | " for the disconnect plugin.")); |
| | | } |
| | | } |
| | | } |
| | |
| | | if (c.getValue().stringValue().equalsIgnoreCase(section)) |
| | | { |
| | | operation.disconnectClient(DisconnectReason.CLOSED_BY_PLUGIN, true, |
| | | "Closed by disconnect client plugin (section " + section + ")", |
| | | -1); |
| | | Message.raw("Closed by disconnect client plugin (section " + |
| | | section + ")")); |
| | | |
| | | return true; |
| | | } |