Code example for HttpContext

Methods: setAttribute

  public AppengineClient(Context context) {
    accountManager = (AccountManager)context.getSystemService(Context.ACCOUNT_SERVICE);
    account = accountManager.getAccountsByType("")[0];
    httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);
  protected void finalize() { 
  public HttpEntity sendRequest(HttpUriRequest request) throws IOException {
    if (getCookie() == null) { 
      if (!fetchCookie()) { 
        // One retry for the case where the ClientLogin token has expired. 
        accountManager.invalidateAuthToken("", authToken);
        authToken = null;
        if (!fetchCookie()) { 
Connect your IDE to all the code out there  Get Codota for Java