All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dsa.iot.dslink.methods.requests.RemoveRequest Maven / Gradle / Ivy

There is a newer version: 0.24.2
Show newest version
package org.dsa.iot.dslink.methods.requests;

import org.dsa.iot.dslink.methods.Request;
import org.dsa.iot.dslink.util.json.JsonObject;

/**
 * Request used to remove attributes or configurations.
 *
 * @author Samuel Grenier
 */
public class RemoveRequest extends Request {

    private final String path;

    public RemoveRequest(String path) {
        if (path == null) {
            throw new NullPointerException("path");
        }
        this.path = path;
    }

    @Override
    public String getName() {
        return "remove";
    }

    public String getPath() {
        return path;
    }

    @Override
    public void addJsonValues(JsonObject out) {
        out.put("path", path);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy