Package com.logicaldoc.webservicesamples
Class SampleFileUpload
- java.lang.Object
- 
- com.logicaldoc.webservicesamples.SampleFileUpload
 
- 
 public class SampleFileUpload extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description SampleFileUpload()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexecuteMultiPartRequest(String urlString, File file, String fileName, String fileDescription)Method that builds the multi-part form data requeststatic voidmain(String[] args)
 
- 
- 
- 
Method Detail- 
executeMultiPartRequestpublic String executeMultiPartRequest(String urlString, File file, String fileName, String fileDescription) Method that builds the multi-part form data request- Parameters:
- urlString- the urlString to which the file needs to be uploaded
- file- the actual file instance that needs to be uploaded
- fileName- name of the file, just to show how to add the usual form parameters
- fileDescription- some description for the file, just to show how to add the usual form parameters
- Returns:
- server response as String
 
 - 
mainpublic static void main(String[] args) 
 
- 
 
-