io.netty.handler.codec.http.multipart.HttpPostRequestEncoder for
optional filename and builder support
This encoder will help to encode Request for a FORM as POST.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv boolean | |
| pack-priv Charset | |
| pack-priv HttpDataFactory | |
| pack-priv HttpPostRequestEncoder. | |
| pack-priv boolean | |
| pack-priv static final Map | |
| pack-priv final Sinks. | |
| pack-priv final HttpRequest |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpClientFormEncoder(HttpDataFactory
the factory used to create InterfaceHttpData factory, HttpRequest the request to encode request, boolean True if the FORM is a ENCTYPE="multipart/form-data" multipart, Charset the charset to use as default charset, HttpPostRequestEncoder.the mode for the encoder to use. See encoderModeEncoderMode for the
details.Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final HttpClientFormEncoder | |
| public HttpClientForm | attr(String
Attribute name name, String Attribute value value)Implements reactor. |
| public HttpClientForm | charset(Charset
form charset charset)Implements reactor. Charset.
|
| public HttpClientForm | cleanOnTerminate(boolean
true if cleaned on termination (successful or failed) clean)Implements reactor. |
| public HttpClientForm | encoding(HttpPostRequestEncoder.
the encoding mode for this form encoding modeImplements reactor. |
| public HttpClientForm | factory(HttpDataFactory
the new factory)HttpDataFactory to useImplements reactor. |
| public HttpClientForm | file(String
File name name, File File reference file)Implements reactor. |
| public HttpClientForm | file(String
File name name, InputStream File content as InputStream inputStream)Implements reactor. |
| public HttpClientForm | |
| public HttpClientForm | file(String
File name name, String File name to override origin name filename, InputStream File content as InputStream stream, String File mime-type contentType)Implements reactor. |
| public HttpClientForm | files(String
File name name, File[] File references files, String[] File mime-types in the same order than file references contentTypes)Implements reactor. |
| public HttpClientForm | files(String
File name name, File[] File references files, String[] File mime-type in the same order than file references contentTypes, boolean[] Plain-Text transmission in the same order than file references textFiles)Implements reactor. |
| public HttpClientForm | multipart(boolean
should this form be encoded as Multipart isMultipart)Implements reactor. |
| public HttpContent | readChunk(ByteBufAllocator
ByteBufAllocator if buffer allocation is necessary.Overrides io. Implements io. |
| public void | |
| public HttpClientForm | textFile(String
Text file name name, File Text File reference file)Implements reactor. |
| public HttpClientForm | textFile(String
Text file name name, File Text File reference file, String Text file mime-type contentType)Implements reactor. |
| public HttpClientForm | textFile(String
Text file name name, InputStream Text file content as InputStream stream)Implements reactor. |
| public HttpClientForm | textFile(String
Text file name name, InputStream Text file content as InputStream stream, String Text file mime-type contentType)Implements reactor. |
| cleanOnTerminate | back to summary |
|---|---|
| pack-priv boolean cleanOnTerminate | |
| DEFAULT_BINARY_CONTENT_TYPE | back to summary |
|---|---|
| pack-priv static final String DEFAULT_BINARY_CONTENT_TYPE | |
| DEFAULT_TEXT_CONTENT_TYPE | back to summary |
|---|---|
| pack-priv static final String DEFAULT_TEXT_CONTENT_TYPE | |
| DEFAULT_TRANSFER_ENCODING | back to summary |
|---|---|
| pack-priv static final String DEFAULT_TRANSFER_ENCODING | |
| needNewEncoder | back to summary |
|---|---|
| pack-priv boolean needNewEncoder | |
| newCharset | back to summary |
|---|---|
| pack-priv Charset newCharset | |
| newFactory | back to summary |
|---|---|
| pack-priv HttpDataFactory newFactory | |
| newMode | back to summary |
|---|---|
| pack-priv HttpPostRequestEncoder. | |
| newMultipart | back to summary |
|---|---|
| pack-priv boolean newMultipart | |
| percentEncodings | back to summary |
|---|---|
| pack-priv static final Map<Pattern, String> percentEncodings Hides io. | |
| progressSink | back to summary |
|---|---|
| pack-priv final Sinks. | |
| request | back to summary |
|---|---|
| pack-priv final HttpRequest request Hides io. | |
| HttpClientFormEncoder | back to summary |
|---|---|
| pack-priv HttpClientFormEncoder(HttpDataFactory factory, HttpRequest request, boolean multipart, Charset charset, HttpPostRequestEncoder. Constructs a new
| |
| applyChanges | back to summary |
|---|---|
| pack-priv final HttpClientFormEncoder applyChanges(HttpRequest request) | |
| attr | back to summary |
|---|---|
| public HttpClientForm attr(String name, String value) Implements reactor. Doc from reactor. Add an HTTP Form attribute.
| |
| charset | back to summary |
|---|---|
| public HttpClientForm charset(Charset charset) Implements reactor. Doc from reactor. Set the Form
| |
| cleanOnTerminate | back to summary |
|---|---|
| public HttpClientForm cleanOnTerminate(boolean clean) Implements reactor. Doc from reactor. Should file attributes be cleaned and eventually removed from disk. Default to false.
| |
| encoding | back to summary |
|---|---|
| public HttpClientForm encoding(HttpPostRequestEncoder. Implements reactor. Doc from reactor. Set Form encoding.
| |
| factory | back to summary |
|---|---|
| public HttpClientForm factory(HttpDataFactory factory) Implements reactor. Doc from reactor. Set Upload factories (allows memory threshold configuration).
| |
| file | back to summary |
|---|---|
| public HttpClientForm file(String name, File file) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute.
| |
| file | back to summary |
|---|---|
| public HttpClientForm file(String name, InputStream inputStream) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute.
| |
| file | back to summary |
|---|---|
| public HttpClientForm file(String name, String filename, File file, String contentType) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute. | |
| file | back to summary |
|---|---|
| public HttpClientForm file(String name, String filename, InputStream stream, String contentType) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute.
| |
| files | back to summary |
|---|---|
| public HttpClientForm files(String name, File[] files, String[] contentTypes) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute.
| |
| files | back to summary |
|---|---|
| public HttpClientForm files(String name, File[] files, String[] contentTypes, boolean[] textFiles) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute.
| |
| multipart | back to summary |
|---|---|
| public HttpClientForm multipart(boolean isMultipart) Implements reactor. Doc from reactor. Define if this request will be encoded as Multipart.
| |
| readChunk | back to summary |
|---|---|
| public HttpContent readChunk(ByteBufAllocator allocator) throws Exception Overrides io. Implements io. Doc from io. Fetches a chunked data from the stream. Once this method returns the last chunk
and thus the stream has reached at its end, any subsequent
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| textFile | back to summary |
|---|---|
| public HttpClientForm textFile(String name, File file) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute for a text file.
| |
| textFile | back to summary |
|---|---|
| public HttpClientForm textFile(String name, File file, String contentType) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute for a text file.
| |
| textFile | back to summary |
|---|---|
| public HttpClientForm textFile(String name, InputStream stream) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute for a text file.
| |
| textFile | back to summary |
|---|---|
| public HttpClientForm textFile(String name, InputStream stream, String contentType) Implements reactor. Doc from reactor. Add an HTTP File Upload attribute for a text file.
| |