com.bld.commons.connection.client.RestClientConnection Maven / Gradle / Ivy
/**
* @author Francesco Baldi
* @mail [email protected]
* @class com.bld.commons.connection.client.RestClientConnection.java
*/
package com.bld.commons.connection.client;
import java.util.List;
import com.bld.commons.connection.model.MapRequest;
import com.bld.commons.connection.model.ObjectRequest;
/**
* The Interface ClientConnection.
*/
public interface RestClientConnection {
/**
* Entity rest template.
*
* @param the generic type
* @param mapRequest the map request
* @param responseClass the response class
* @return the t
* @throws Exception the exception
*/
public T entityRestTemplate(MapRequest mapRequest, Class responseClass) throws Exception;
/**
* Entity rest template.
*
* @param the generic type
* @param objectRequest the object request
* @param responseClass the response class
* @return the t
* @throws Exception the exception
*/
public T entityRestTemplate(ObjectRequest> objectRequest, Class responseClass) throws Exception;
/**
* List rest template.
*
* @param the generic type
* @param mapRequest the map request
* @param responseClass the response class
* @return the list
* @throws Exception the exception
*/
public List listRestTemplate(MapRequest mapRequest, Class responseClass) throws Exception;
/**
* List rest template.
*
* @param the generic type
* @param objectRequest the object request
* @param responseClass the response class
* @return the list
* @throws Exception the exception
*/
public List listRestTemplate(ObjectRequest> objectRequest, Class responseClass) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy