public RequestBuilder < Resource > set ( final String name , final File file ) { return set ( name , file != null ? new FileBody ( file ) : null ) ; }
Adds a file to the request also making the request to become a multi - part post request or removes any file registered under the given name if the file value is null .