Remove callhome-server
[netconf.git] / netconf / callhome-server / src / main / java / org / opendaylight / netconf / callhome / server / tls / CallHomeTlsSessionContext.java
diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java b/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java
deleted file mode 100644 (file)
index 221949e..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2023 PANTHEON.tech s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.netconf.callhome.server.tls;
-
-import static java.util.Objects.requireNonNull;
-
-import com.google.common.base.MoreObjects;
-import com.google.common.util.concurrent.SettableFuture;
-import io.netty.channel.Channel;
-import org.opendaylight.netconf.callhome.server.CallHomeSessionContext;
-import org.opendaylight.netconf.client.NetconfClientSession;
-import org.opendaylight.netconf.client.NetconfClientSessionListener;
-
-public record CallHomeTlsSessionContext(String id, Channel nettyChannel,
-        NetconfClientSessionListener netconfSessionListener, SettableFuture<NetconfClientSession> settableFuture)
-        implements CallHomeSessionContext {
-
-    public CallHomeTlsSessionContext {
-        requireNonNull(id);
-        requireNonNull(nettyChannel);
-        requireNonNull(netconfSessionListener);
-        requireNonNull(settableFuture);
-    }
-
-    @Override
-    public void close() {
-        if (nettyChannel.isOpen()) {
-            nettyChannel.close();
-        }
-    }
-
-    @Override
-    public String toString() {
-        return MoreObjects.toStringHelper(this)
-            .add("protocol", "TLS")
-            .add("id", id)
-            .add("address", nettyChannel.remoteAddress())
-            .toString();
-    }
-}