Example usage for Java io.netty.handler.codec.http.multipart HttpPostRequestEncoder fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isChunked Chunked false by default |
HttpPostRequestEncoder(HttpDataFactory factory, HttpRequest request, boolean multipart) | |
HttpPostRequestEncoder(HttpRequest request, boolean multipart) |
void | addBodyAttribute(String name, String value) Add a simple attribute in the body as Name=Value |
void | addBodyFileUpload(String name, File file, String contentType, boolean isText) Add a file as a FileUpload |
void | addBodyHttpData(InterfaceHttpData data) Add the InterfaceHttpData to the Body list |
void | cleanFiles() Clean all HttpDatas (on Disk) for the current request. |
HttpRequest | finalizeRequest() Finalize the request by preparing the Header in the request and returns the request ready to be sent. Once finalized, no data must be added. If the request does not need chunk (isChunked() == false), this request is the only object to send to the remote server. |
List | getBodyListAttributes() This getMethod returns a List of all InterfaceHttpData from body part. |
boolean | isEndOfInput() |
HttpContent | readChunk(ChannelHandlerContext ctx) |
HttpContent | readChunk(ByteBufAllocator allocator) Returns the next available HttpChunk. |
void | setBodyHttpDatas(List Set the Body HttpDatas list |