
net.anthavio.httl.HttlResponseHandler 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;
import java.io.IOException;
/**
*
* Suitable for streaming processing of the Responses.
*
* Implementation is not required to close Response.
*
* @author martin.vanek
*
*/
public interface HttlResponseHandler {
/**
* Invoked when response is opened and response ready to be processed by this method.
*/
public void onResponse(HttlResponse response) throws IOException;
/**
* Invoked when exception occurs during Request execution
*/
public void onFailure(HttlRequest request, Exception exception);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy