| | |
| | | |
| | | import static org.forgerock.opendj.adapter.server2x.Converters.*; |
| | | import static org.opends.messages.ProtocolMessages.*; |
| | | import static org.opends.server.loggers.AccessLogger.*; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | |
| | | import java.net.InetAddress; |
| | |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.MessageBuilder; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ConnectionHandler; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | |
| | | this.request = request; |
| | | |
| | | this.connectionID = DirectoryServer.newConnectionAccepted(this); |
| | | if (this.connectionID < 0) |
| | | { |
| | | disconnect(DisconnectReason.ADMIN_LIMIT_EXCEEDED, true, |
| | | ERR_CONNHANDLER_REJECTED_BY_SERVER.get()); |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public ConnectionHandler<?> getConnectionHandler() |
| | | public HTTPConnectionHandler getConnectionHandler() |
| | | { |
| | | return connectionHandler; |
| | | } |
| | |
| | | protected boolean sendIntermediateResponseMessage( |
| | | IntermediateResponse intermediateResponse) |
| | | { |
| | | // TODO Auto-generated method stub |
| | | return false; |
| | | throw new RuntimeException("Not implemented"); |
| | | } |
| | | |
| | | /** |
| | |
| | | .getClosureMessage())); |
| | | } |
| | | finalizeConnectionInternal(); |
| | | |
| | | |
| | | this.connectionHandler.removeClientConnection(this); |
| | | logDisconnect(this, disconnectReason, message); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | |
| | | op.operation.abort(cancelRequest); |
| | | } |
| | | catch (Exception e) |
| | | { // make sure all operations are cancelled, no mattter what |
| | | { // make sure all operations are cancelled, no matter what |
| | | if (debugEnabled()) |
| | | { |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | |
| | | { |
| | | return connectionValid; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isInnerConnection() |
| | | { |
| | | return true; |
| | | } |
| | | } |