top.jfunc.http.holder.DefaultBodyHolder Maven / Gradle / Ivy
package top.jfunc.http.holder;
import top.jfunc.http.config.Config;
/**
* 默认的基于String的实现,如果字节场景较多,可以基于字节实现
* @author xiongshiyan at 2019/6/13 , contact me with email [email protected] or phone 15208384257
*/
public class DefaultBodyHolder implements BodyHolder {
private String body;
private String bodyCharset = Config.DEFAULT_CHARSET;
@Override
public String getBody() {
return body;
}
@Override
public BodyHolder setBody(String body) {
this.body = body;
return this;
}
@Override
public String getBodyCharset() {
return bodyCharset;
}
@Override
public BodyHolder setBodyCharset(String bodyCharset) {
this.bodyCharset = bodyCharset;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy