
net.anthavio.httl.api.VarSetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hatatitla Show documentation
Show all versions of hatatitla Show documentation
Compact but tweakable REST client library you have been dreaming of
The newest version!
package net.anthavio.httl.api;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import net.anthavio.httl.HttlRequestBuilder;
import net.anthavio.httl.HttlRequestException;
import net.anthavio.httl.api.HttlApiBuilder.ApiVarMeta;
/**
* Optional 'setter' field of @HttlVar annotation must implement this interface.
*
* Usage example:
*
* @HttlCall("GET /paging")
* String paging(@HttlVar(value = "page", setter = PageableSetter.class) Pageable pager);
*
* @author martin.vanek
*
*/
public interface VarSetter {
/**
* Pass value into builder as you want...
*/
public void set(T value, String name, HttlRequestBuilder> builder);
public static final MapVarSetter MapVarSetter = new MapVarSetter();
/**
* Built-in Map API parameter VarSetter
*
* @author martin.vanek
*
*/
public static class MapVarSetter implements VarSetter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy