
net.anthavio.httl.api.HttlBodyWriter 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.io.IOException;
import java.io.OutputStream;
/**
* Used in @HttlBody writer attribute
*
* Example:
*
* @HttlCall("POST /something")
* public String something(@HttlBody(writer=MyGreatResultSetBodyWriter.class) ResultSet resultset);
*
* @author martin.vanek
*
*/
public interface HttlBodyWriter {
/**
* Write payload into stream in most crazy way you can find
*/
public void write(B payload, OutputStream stream) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy