2 * Copyright (c) 2010-2023 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.http.internal.converter;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.http.internal.http.Content;
17 import org.openhab.core.types.Command;
20 * The {@link ItemValueConverter} defines the interface for converting received content to item state and converting
21 * comannds to sending value
23 * @author Jan N. Klug - Initial contribution
26 public interface ItemValueConverter {
29 * called to process a given content for this channel
31 * @param content content of the HTTP request
33 void process(Content content);
36 * called to send a command to this channel
40 void send(Command command);