Android Programming Press on the image to return to the main documentation page.

HttpUtils2

List of types:

HttpJob

HttpJob

HttpUtils2 version 2.01
Class module

Events:

None

Members:


  Class_Globals As String

  Complete (id As Int) As String

  Download (Link As String) As String

  Download2 (Link As String, Parameters() As String) As String

  ErrorMessage As String

  GetBitmap As BitmapWrapper

  GetInputStream As InputStreamWrapper

  GetRequest As HttpUriRequestWrapper

  GetString As String

  GetString2 (Encoding As String) As String

  Initialize (Name As String, TargetModule As Object) As String

  IsInitialized As Boolean

  JobName As String

  Password As String

  PostBytes (Link As String, Data() As Byte) As String

  PostFile (Link As String, Dir As String, FileName As String) As String

  PostString (Link As String, Text As String) As String

  Release As String

  Success As Boolean

  Tag As Object

  Username As String

Members description:

Class_Globals As String
Complete (id As Int) As String
Called by the service when job completes
Download (Link As String) As String
Submits a HTTP GET request.
Consider using Download2 if the parameters should be escaped.
Download2 (Link As String, Parameters() As String) As String
Submits a HTTP GET request.
Encodes illegal parameter characters.
Example:
job.Download2("http://www.example.com", _
  Array As String("key1", "value1", "key2", "value2"))

ErrorMessage As String
GetBitmap As BitmapWrapper
Returns the response as a bitmap
GetInputStream As InputStreamWrapper
GetRequest As HttpUriRequestWrapper
Called by the service to get the request
GetString As String
Returns the response as a string encoded with UTF8.
GetString2 (Encoding As String) As String
Returns the response as a string.
Initialize (Name As String, TargetModule As Object) As String
Initializes the Job.
Name - The job's name. Note that the name doesn't need to be unique.
TargetModule - The activity or service that will handle the JobDone event.
IsInitialized As Boolean
Tests whether the object has been initialized.
JobName As String
Password As String
PostBytes (Link As String, Data() As Byte) As String
Sends a POST request with the given string as the post data
PostFile (Link As String, Dir As String, FileName As String) As String
Sends a POST request with the given file as the post data.
This method doesn't work with assets files.
PostString (Link As String, Text As String) As String
Sends a POST request with the given data as the post data.
Release As String
Should be called to free resources held by this job.
Success As Boolean
Tag As Object
Username As String

Top