FileDocCategorySizeDatePackage
LoggingEventHandler.javaAPI DocAndroid 5.1 API2820Thu Mar 12 22:22:10 GMT 2015android.net.http

LoggingEventHandler

public class LoggingEventHandler extends Object implements EventHandler
{@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidcertificate(SslCertificate certificate)

         if (HttpLog.LOGV) {
             HttpLog.v("LoggingEventHandler: certificate(): " + certificate);
         }
    
public voiddata(byte[] data, int len)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler: data() " + len + " bytes");
        }
        // HttpLog.v(new String(data, 0, len));
    
public voidendData()

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler: endData() called");
        }
    
public voiderror(int id, java.lang.String description)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler: error() called Id:" + id +
                      " description " + description);
        }
    
public booleanhandleSslErrorRequest(SslError error)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler: handleSslErrorRequest():" + error);
        }
        // return false so that the caller thread won't wait forever
        return false;
    
public voidheaders(android.net.http.Headers headers)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler:headers()");
            HttpLog.v(headers.toString());
        }
    
public voidlocationChanged(java.lang.String newLocation, boolean permanent)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler: locationChanged() " + newLocation +
                      " permanent " + permanent);
        }
    
public voidrequestSent()

        HttpLog.v("LoggingEventHandler:requestSent()");
    
public voidstatus(int major_version, int minor_version, int code, java.lang.String reason_phrase)

        if (HttpLog.LOGV) {
            HttpLog.v("LoggingEventHandler:status() major: " + major_version +
                  " minor: " + minor_version +
                  " code: " + code +
                  " reason: " + reason_phrase);
        }