IT. Expert System.

Android Reference

RequestHandle


android.net.http

Class RequestHandle



  • public class RequestHandle
    extends Object
    RequestHandle: handles a request session that may include multiple redirects, HTTP authentication requests, etc.
    • Constructor Detail

      • RequestHandle

        public RequestHandle(RequestQueue requestQueue,
                     String url,
                     WebAddress uri,
                     String method,
                     Map<String,String> headers,
                     InputStream bodyProvider,
                     int bodyLength,
                     android.net.http.Request request,
                     android.net.http.Connection conn)
        Creates a new request session with a given Connection. This connection is used during a synchronous load to handle this request.
    • Method Detail

      • cancel

        public void cancel()
        Cancels this request
      • pauseRequest

        public void pauseRequest(boolean pause)
        Pauses the loading of this request. For example, called from the WebCore thread when the plugin can take no more data.
      • handleSslErrorResponse

        public void handleSslErrorResponse(boolean proceed)
        Handles SSL error(s) on the way down from the user (the user has already provided their feedback).
      • isRedirectMax

        public boolean isRedirectMax()
        Returns:
        true if we've hit the max redirect count
      • getRedirectCount

        public int getRedirectCount()
      • setRedirectCount

        public void setRedirectCount(int count)
      • setupRedirect

        public boolean setupRedirect(String redirectTo,
                            int statusCode,
                            Map<String,String> cacheHeaders)
        Create and queue a redirect request.
        Parameters:
        redirectTo - URL to redirect to
        statusCode - HTTP status code returned from original request
        cacheHeaders - Cache header for redirect URL
        Returns:
        true if setup succeeds, false otherwise (redirect loop count exceeded, body provider unable to rewind on 307 redirect)
      • setupBasicAuthResponse

        public void setupBasicAuthResponse(boolean isProxy,
                                  String username,
                                  String password)
        Create and queue an HTTP authentication-response (basic) request.
      • setupDigestAuthResponse

        public void setupDigestAuthResponse(boolean isProxy,
                                   String username,
                                   String password,
                                   String realm,
                                   String nonce,
                                   String QOP,
                                   String algorithm,
                                   String opaque)
        Create and queue an HTTP authentication-response (digest) request.
      • getMethod

        public String getMethod()
        Returns:
        HTTP request method (GET, PUT, etc).
      • computeBasicAuthResponse

        public static String computeBasicAuthResponse(String username,
                                      String password)
        Returns:
        Basic-scheme authentication response: BASE64(username:password).
      • waitUntilComplete

        public void waitUntilComplete()
      • processRequest

        public void processRequest()
      • authorizationHeader

        public static String authorizationHeader(boolean isProxy)
        Returns:
        The right authorization header (dependeing on whether it is a proxy or not).


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 4016 / . Delta: 0.03566 с