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

com.vikingbrain.nmt.controller.RemoteHttpService Maven / Gradle / Ivy

Go to download

A Java HTTP client for consuming TheDavidBox Service API of Networked Media Tank devices

There is a newer version: 1.2.1
Show newest version
package com.vikingbrain.nmt.controller;

import java.util.LinkedHashMap;

import org.apache.http.client.HttpClient;

import com.vikingbrain.nmt.operations.OperationType;
import com.vikingbrain.nmt.util.exceptions.TheDavidBoxClientException;

/**
 * 
 * @author vikingBrain
 */
public interface RemoteHttpService {
	
	/**
	 * It builds a get for the specified data.
	 * @param remoteHost the IP or remote host
	 * @param operationType the operation type
	 * @param arguments the operation arguments
	 * @return the get request in a string object 
	 */
	String buildGetRequest(String remoteHost, OperationType operationType, LinkedHashMap arguments);	
	
	/**
	 * Sends the get request and get the response as string
	 * @param url the url get
	 * @return the response as a string
	 * @throws TheDavidBoxClientException exception in the client
	 */
	String sendGetRequest(String url) throws TheDavidBoxClientException;

	/**
	 * Setter of property.
	 * @param client the http client
	 */
	void setHttpClient(HttpClient client);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy