public interface HttpClientForm
| Modifier and Type | Method and Description |
|---|---|
HttpClientForm |
attr(String name,
String value)
Add an HTTP Form attribute.
|
HttpClientForm |
charset(Charset charset)
Set the Form
Charset. |
HttpClientForm |
cleanOnTerminate(boolean clean)
Should file attributes be cleaned and eventually removed from disk.
|
HttpClientForm |
encoding(HttpPostRequestEncoder.EncoderMode mode)
Set Form encoding.
|
HttpClientForm |
factory(HttpDataFactory factory)
Set Upload factories (allows memory threshold configuration).
|
HttpClientForm |
file(String name,
File file)
Add an HTTP File Upload attribute.
|
default HttpClientForm |
file(String name,
File file,
String contentType)
Add an HTTP File Upload attribute.
|
HttpClientForm |
file(String name,
InputStream stream)
Add an HTTP File Upload attribute.
|
default HttpClientForm |
file(String name,
InputStream stream,
String contentType)
Add an HTTP File Upload attribute.
|
HttpClientForm |
file(String name,
String filename,
File file,
String contentType)
Add an HTTP File Upload attribute.
|
HttpClientForm |
file(String name,
String filename,
InputStream stream,
String contentType)
Add an HTTP File Upload attribute.
|
HttpClientForm |
files(String name,
File[] files,
String[] contentTypes)
Add an HTTP File Upload attribute.
|
HttpClientForm |
files(String name,
File[] files,
String[] contentTypes,
boolean[] textFiles)
Add an HTTP File Upload attribute.
|
HttpClientForm |
multipart(boolean multipart)
Define if this request will be encoded as Multipart.
|
HttpClientForm |
textFile(String name,
File file)
Add an HTTP File Upload attribute for a text file.
|
HttpClientForm |
textFile(String name,
File file,
String contentType)
Add an HTTP File Upload attribute for a text file.
|
HttpClientForm |
textFile(String name,
InputStream stream)
Add an HTTP File Upload attribute for a text file.
|
HttpClientForm |
textFile(String name,
InputStream inputStream,
String contentType)
Add an HTTP File Upload attribute for a text file.
|
HttpClientForm attr(String name, String value)
name - Attribute namevalue - Attribute valueHttpClientForm charset(Charset charset)
Charset.charset - form charsetHttpClientForm cleanOnTerminate(boolean clean)
clean - true if cleaned on termination (successful or failed)HttpClientForm encoding(HttpPostRequestEncoder.EncoderMode mode)
mode - the encoding mode for this form encodingHttpClientForm factory(HttpDataFactory factory)
factory - the new HttpDataFactory to useHttpClientForm file(String name, File file)
name - File namefile - File referenceHttpClientForm file(String name, InputStream stream)
name - File namestream - File content as InputStreamdefault HttpClientForm file(String name, File file, @Nullable String contentType)
name - File namefile - File referencecontentType - File mime-typeHttpClientForm file(String name, String filename, File file, @Nullable String contentType)
name - File namefilename - File name to override origin namefile - File referencecontentType - File mime-typedefault HttpClientForm file(String name, InputStream stream, @Nullable String contentType)
name - File namestream - File content as InputStreamcontentType - File mime-typeHttpClientForm file(String name, String filename, InputStream stream, @Nullable String contentType)
name - File namefilename - File name to override origin namestream - File content as InputStreamcontentType - File mime-typeHttpClientForm files(String name, File[] files, String[] contentTypes)
name - File namefiles - File referencescontentTypes - File mime-types in the same order than file referencesHttpClientForm files(String name, File[] files, String[] contentTypes, boolean[] textFiles)
name - File namefiles - File referencescontentTypes - File mime-type in the same order than file referencestextFiles - Plain-Text transmission in the same order than file referencesHttpClientForm multipart(boolean multipart)
multipart - should this form be encoded as MultipartHttpClientForm textFile(String name, File file)
name - Text file namefile - Text File referenceHttpClientForm textFile(String name, InputStream stream)
name - Text file namestream - Text file content as InputStreamHttpClientForm textFile(String name, File file, @Nullable String contentType)
name - Text file namefile - Text File referencecontentType - Text file mime-typeHttpClientForm textFile(String name, InputStream inputStream, @Nullable String contentType)
name - Text file nameinputStream - Text file content as InputStreamcontentType - Text file mime-type