Package com.logicaldoc.webservicesamples
Class SampleFileUpload
- java.lang.Object
-
- com.logicaldoc.webservicesamples.SampleFileUpload
-
public class SampleFileUpload extends Object
-
-
Constructor Summary
Constructors Constructor Description SampleFileUpload()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
executeMultiPartRequest(String urlString, File file, String fileName, String fileDescription)
Method that builds the multi-part form data requeststatic void
main(String[] args)
-
-
-
Method Detail
-
executeMultiPartRequest
public 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 uploadedfile
- the actual file instance that needs to be uploadedfileName
- name of the file, just to show how to add the usual form parametersfileDescription
- some description for the file, just to show how to add the usual form parameters- Returns:
- server response as
String
-
main
public static void main(String[] args)
-
-