Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion.builder;
 
 
 import java.io.File;
 import java.util.List;
 import java.util.Map;

Created by koush on 5/30/13.
 // set additional body parameters for multipart/form-data
public interface MultipartBodyBuilder<M extends MultipartBodyBuilder> {
    
Specify a multipart/form-data parameter to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
name Multipart name
value Multipart String value
Returns:
    public M setMultipartParameter(String nameString value);

    
Specify a multipart/form-data parameter to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
params The map containing key value pairs
Returns:
    public M setMultipartParameters(Map<StringList<String>> params);

    
Specify a multipart/form-data file to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
name Multipart name
file Multipart file to send
Returns:
    public M setMultipartFile(String nameFile file);

    
Specify a multipart/form-data file to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
name Multipart name
file Multipart Content-Type
file Multipart file to send
Returns:
    public M setMultipartFile(String nameString contentTypeFile file);

    
Specify multipart/form-data parameters to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
parameters
Returns:
    public M addMultipartParts(Iterable<Partparameters);

    
Specify multipart/form-data parameters to send to the HTTP server. If no HTTP method was explicitly provided in the load call, the default HTTP method, POST, is used.

Parameters:
parameters
Returns:
    public M addMultipartParts(Part... parameters);

    
Specify the content type to use in this request. By default it is multipart/form-data

Parameters:
contentType
Returns:
    public M setMultipartContentType(String contentType);
New to GrepCode? Check out our FAQ X