
net.anthavio.httl.api.HttlCallBuilder 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;
/**
* When Api @HttlCall method has overwhelming number of parameters to be declared, extend this interface
* and return it from @HttlCall method instead of response and let the magic happend
*
* Bare in mind that reflection and dynamic proxy is employed which makes this awesome thing not as fast as light
*
* Example:
*
* @HttlCall("GET list.json")
* public ListBlacklistBuilder list(@HttlVar(name = "forum", required = true) String forum);
*
* public static interface ListBlacklistBuilder extends HttlCallBuilder>> {
*
* public ListBlacklistBuilder since(Date since);
*
* // more builder methods...
*
* public ListBlacklistBuilder order(Order order);
* }
*
* @author martin.vanek
*
* @param return type
*/
public interface HttlCallBuilder {
/**
* Dynamicaly implemented
*/
public R execute();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy