2 * Copyright (c) 2010-2021 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.ipcamera.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import io.netty.channel.Channel;
20 * The {@link ChannelTracking} Can be used to find the handle for a HTTP channel if you know the URL. The reply can
21 * optionally be stored for later use.
24 * @author Matthew Skinner - Initial contribution
28 public class ChannelTracking {
29 private String storedReply = "";
30 private String requestUrl = "";
31 private Channel channel;
33 public ChannelTracking(Channel channel, String requestUrl) {
34 this.channel = channel;
35 this.requestUrl = requestUrl;
38 public String getRequestUrl() {
42 public Channel getChannel() {
46 public String getReply() {
50 public void setReply(String replyToStore) {
51 storedReply = replyToStore;
54 public void setChannel(Channel ch) {