Example usage for com.squareup.okhttp.internal.http StatusLine get

List of usage examples for com.squareup.okhttp.internal.http StatusLine get

Introduction

In this page you can find the example usage for com.squareup.okhttp.internal.http StatusLine get.

Prototype

public static StatusLine get(Response response) 

Source Link

Usage

From source file:com.microsoft.windowsazure.mobileservices.http.ServiceFilterResponseImpl.java

License:Open Source License

@Override
public StatusLine getStatus() {
    return StatusLine.get(mResponse);
}

From source file:io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.java

License:Apache License

/**
 * Returns the value of the field corresponding to the {@code fieldName}, or
 * null if there is no such field. If the field has multiple values, the
 * last value is returned./*  www. j ava2  s.  co  m*/
 */
@Override
public final String getHeaderField(String fieldName) {
    try {
        return fieldName == null ? StatusLine.get(getResponse().getResponse()).toString()
                : getHeaders().get(fieldName);
    } catch (IOException e) {
        return null;
    }
}

From source file:io.apiman.gateway.platforms.servlet.connectors.ok.HttpURLConnectionImpl.java

License:Apache License

@Override
public final Map<String, List<String>> getHeaderFields() {
    try {// www  .  j  av  a 2  s . c om
        return OkHeaders.toMultimap(getHeaders(), StatusLine.get(getResponse().getResponse()).toString());
    } catch (IOException e) {
        return Collections.emptyMap();
    }
}