软件包 | 描述 |
---|---|
io.netty.handler.codec.http.multipart |
HTTP多部分支持。
|
Modifier and Type | Method and Description |
---|---|
void |
HttpPostRequestEncoder.addBodyAttribute(java.lang.String name, java.lang.String value)
在Name中添加一个简单的属性名称= Value
|
void |
HttpPostRequestEncoder.addBodyFileUpload(java.lang.String name, java.io.File file, java.lang.String contentType, boolean isText)
将文件添加为FileUpload
|
void |
HttpPostRequestEncoder.addBodyFileUpload(java.lang.String name, java.lang.String filename, java.io.File file, java.lang.String contentType, boolean isText)
将文件添加为FileUpload
|
void |
HttpPostRequestEncoder.addBodyFileUploads(java.lang.String name, java.io.File[] file, java.lang.String[] contentType, boolean[] isText)
添加一系列与一个File参数关联的文件
|
void |
HttpPostRequestEncoder.addBodyHttpData(InterfaceHttpData data)
将InterfaceHttpData添加到Body列表
|
HttpRequest |
HttpPostRequestEncoder.finalizeRequest()
通过在请求中准备标题完成请求,并返回准备发送的请求。
|
void |
HttpPostRequestEncoder.setBodyHttpDatas(java.util.List<InterfaceHttpData> datas)
设置Body HttpDatas列表
|
Constructor and Description |
---|
HttpPostRequestEncoder(HttpDataFactory factory, HttpRequest request, boolean multipart) |
HttpPostRequestEncoder(HttpDataFactory factory, HttpRequest request, boolean multipart, java.nio.charset.Charset charset, HttpPostRequestEncoder.EncoderMode encoderMode) |
HttpPostRequestEncoder(HttpRequest request, boolean multipart) |
Copyright © 2008–2018 The Netty Project. All rights reserved.