blob: f1aa84943cf4fe0d437636423be6985304efdc88 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013-2020 LAAS-CNRS (www.laas.fr)
* 7 Colonel Roche 31077 Toulouse - France
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Initial Contributors:
* Thierry Monteil : Project manager, technical co-manager
* Mahdi Ben Alaya : Technical co-manager
* Samir Medjiah : Technical co-manager
* Khalil Drira : Strategy expert
* Guillaume Garzone : Developer
* François Aïssaoui : Developer
*
* New contributors :
*******************************************************************************/
package org.eclipse.om2m.binding.service;
import org.eclipse.om2m.commons.resource.RequestPrimitive;
import org.eclipse.om2m.commons.resource.ResponsePrimitive;
/**
* Rest client interface.
*/
public interface RestClientService {
/**
* Sends a {@link RequestIndication} and receives a {@link ResponseConfirm}.
* @param requestIndication - The generic request to handle.
* @return ResponseConfirm - The generic returned response.
*/
public ResponsePrimitive sendRequest(RequestPrimitive requestIndication);
/**
* Returns the communication protocol name
* @return String
*/
public String getProtocol();
}