HTTPLoader

public class HTTPLoader extends AsyncTaskLoader<String>

Fields

mAuthToken

protected String mAuthToken

mLogin

protected final String mLogin

mPassword

protected final String mPassword

mReference

protected AtomicReference<String> mReference

mUrl

protected final String mUrl

Constructors

HTTPLoader

public HTTPLoader(Context context, String url, String login, String password)

HTTPLoader

public HTTPLoader(Context context, AtomicReference<String> url, String login, String password)

Methods

deliverResult

public void deliverResult(String data)

loadInBackground

public String loadInBackground()

onStartLoading

protected void onStartLoading()

signIn

public static String signIn(Context context, String url, String login, String password)

signIn

protected String signIn()