Java io.netty.handler.codec.http.multipart HttpPostRequestEncoder fields, constructors, methods, implement or subclass

Example usage for Java io.netty.handler.codec.http.multipart HttpPostRequestEncoder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.handler.codec.http.multipart HttpPostRequestEncoder.

The text is from its open source code.

Field

booleanisChunked
Chunked false by default

Constructor

Method

voidaddBodyAttribute(String name, String value)
Add a simple attribute in the body as Name=Value
voidaddBodyFileUpload(String name, File file, String contentType, boolean isText)
Add a file as a FileUpload
voidaddBodyHttpData(InterfaceHttpData data)
Add the InterfaceHttpData to the Body list
voidcleanFiles()
Clean all HttpDatas (on Disk) for the current request.
HttpRequestfinalizeRequest()
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.
ListgetBodyListAttributes()
This getMethod returns a List of all InterfaceHttpData from body part.
booleanisEndOfInput()
HttpContentreadChunk(ChannelHandlerContext ctx)
HttpContentreadChunk(ByteBufAllocator allocator)
Returns the next available HttpChunk.
voidsetBodyHttpDatas(List datas)
Set the Body HttpDatas list