
net.dongliu.commons.request.code.BodyTransformer Maven / Gradle / Ivy
package net.dongliu.commons.request.code;
import org.apache.http.HttpEntity;
/**
* interface to trans body to result
*
* @author Dong Liu
*/
public interface BodyTransformer {
static BodyTransformer string = new StringBodyTransformer();
static BodyTransformer bytes = new BytesBodyTransformer();
/**
* from http Body to result with type T
*/
T fromBody(HttpEntity httpEntity);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy