blob: 71359c6a7439160fd8ba1949d9b1c7870f98438e [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;
/**
* Getter {@link AccessMethod}
*
* @author <a href="mailto:christophe.munilla@cea.fr">Christophe Munilla</a>
*/
public class GetMethod extends AbstractAccessMethod<JSONObject, GetResponse> {
/**
* Constructor
*/
public GetMethod(Mediator mediator, String uri, AccessMethodExecutor preProcessingExecutor) {
super(mediator, uri, AccessMethod.GET, preProcessingExecutor);
}
/**
* @inheritDoc
*
* @see org.eclipse.sensinact.gateway.core.method.AbstractAccessMethod#
* createAccessMethodResponseBuilder(java.lang.Object[])
*/
@Override
public GetResponseBuilder createAccessMethodResponseBuilder(Object[] parameters) {
return new GetResponseBuilder(super.mediator, uri, parameters);
}
}