IT. Expert System.

Android Reference

LoggingEventHandler


android.net.http

Class LoggingEventHandler

    • Constructor Detail

      • LoggingEventHandler

        public LoggingEventHandler()
    • Method Detail

      • requestSent

        public void requestSent()
      • status

        public void status(int major_version,
                  int minor_version,
                  int code,
                  String reason_phrase)
        Description copied from interface: EventHandler
        Called after status line has been sucessfully processed.
        Specified by:
        status in interface EventHandler
        Parameters:
        major_version - HTTP version advertised by server. major is the part before the "."
        minor_version - HTTP version advertised by server. minor is the part after the "."
        code - HTTP Status code. See RFC 2616.
        reason_phrase - Textual explanation sent by server
      • headers

        public void headers(Headers headers)
        Description copied from interface: EventHandler
        Called after all headers are successfully processed.
        Specified by:
        headers in interface EventHandler
      • locationChanged

        public void locationChanged(String newLocation,
                           boolean permanent)
      • data

        public void data(byte[] data,
                int len)
        Description copied from interface: EventHandler
        An array containing all or part of the http body as read from the server.
        Specified by:
        data in interface EventHandler
        Parameters:
        data - A byte array containing the content
        len - The length of valid content in data Note: chunked and compressed encodings are handled within android.net.http. Decoded data is passed through this interface.
      • endData

        public void endData()
        Description copied from interface: EventHandler
        Called when the document is completely read. No more data() callbacks will be made after this call
        Specified by:
        endData in interface EventHandler
      • certificate

        public void certificate(SslCertificate certificate)
        Description copied from interface: EventHandler
        SSL certificate callback called before resource request is made, which will be null for insecure connection.
        Specified by:
        certificate in interface EventHandler
      • error

        public void error(int id,
                 String description)
        Description copied from interface: EventHandler
        There was trouble.
        Specified by:
        error in interface EventHandler
        Parameters:
        id - One of the error codes defined below
        description - of error
      • handleSslErrorRequest

        public boolean handleSslErrorRequest(SslError error)
        Description copied from interface: EventHandler
        SSL certificate error callback. Handles SSL error(s) on the way up to the user. The callback has to make sure that restartConnection() is called, otherwise the connection will be suspended indefinitely.
        Specified by:
        handleSslErrorRequest in interface EventHandler
        Returns:
        True if the callback can handle the error, which means it will call restartConnection() to unblock the thread later, otherwise return false.


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: 329 / 158861602. Delta: 0.03897 с