All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.httpservice.RequestBodyConverter Maven / Gradle / Ivy

There is a newer version: 2.1.4.RELEASE
Show newest version
package com.jd.httpservice;

import java.io.IOException;
import java.io.OutputStream;

/**
 * 标注了 {@link RequestBody} 的参数的转换器;
 * 
 * 
* 定义了如何将某个参数从特定类型转换为用于发送 http 请求体的输入流; * *
* 如果将多个参数都标注了 {@link RequestBody} ,则会按顺序对每一个参数调用其对应的转换器; * *
* 注:任何时候,实现者都应避免在完成一个参数写入之后主动关闭输出流; * * @author haiq * */ public interface RequestBodyConverter { void write(Object param, OutputStream out) throws IOException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy