blob: ec8d44b6b84fefe9d2b12c68646b0d27d664e746 [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* 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
*
* Contributors:
* Kentyou - initial API and implementation
*/
package org.eclipse.sensinact.gateway.core.method.legacy;
import org.eclipse.sensinact.gateway.common.bundle.Mediator;
import org.eclipse.sensinact.gateway.core.method.AbstractAccessMethod;
import org.eclipse.sensinact.gateway.core.method.AccessMethod;
import org.eclipse.sensinact.gateway.core.method.AccessMethodExecutor;
import org.json.JSONObject;
/**
* Unsubscription {@link AccessMethod}
*
* @author <a href="mailto:christophe.munilla@cea.fr">Christophe Munilla</a>
*/
public class UnsubscribeMethod extends AbstractAccessMethod<JSONObject, UnsubscribeResponse> {
/**
* Constructor
*/
public UnsubscribeMethod(Mediator mediator, String uri, AccessMethodExecutor preProcessingExecutor) {
super(mediator, uri, AccessMethod.UNSUBSCRIBE, preProcessingExecutor);
}
/**
* @inheritDoc
*
* @see org.eclipse.sensinact.gateway.core.method.AbstractAccessMethod#
* createAccessMethodResponseBuilder(java.lang.Object[])
*/
@Override
protected UnsubscribeResponseBuilder createAccessMethodResponseBuilder(Object[] parameters) {
return new UnsubscribeResponseBuilder(super.mediator, uri, parameters);
}
}