Package globus.glmap
Class NetworkTask
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.NetworkTask
Network task that works via curl.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels taskvoid
setFormFile
(String fileName, byte[] data) Changes request to form file postvoid
Set header of taskvoid
Set methodsvoid
setPostData
(byte[] data) Set post datavoid
start
(NetworkTask.Callback callback) Starts taskMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
NetworkTask
Default constructor- Parameters:
url
- url of task
-
-
Method Details
-
setHeader
Set header of task- Parameters:
key
- key of headervalue
- value of header
-
setMethod
Set methods- Parameters:
method
- http method
-
setPostData
public void setPostData(@NonNull byte[] data) Set post data- Parameters:
data
- data
-
setFormFile
Changes request to form file post- Parameters:
fileName
- file namedata
- data of file
-
start
Starts task- Parameters:
callback
- callback
-
cancel
public void cancel()Cancels task
-