@Test public void testGetFirstHeader_caseInsensitive() throws Exception { assertEquals("testCustomEvent", subject.getFirstHeader(ResponseHeader.CUSTOM_EVENT_NAME)); assertEquals("http: assertEquals("http: assertNull(subject.getFirstHeader(ResponseHeader.CUSTOM_EVENT_DATA)); }
public String getFirstHeader(final ResponseHeader responseHeader) { for (final Header header : mHeaders) { if (header.getName().equalsIgnoreCase(responseHeader.getKey())) { return header.getValue(); } } return null; }
DownloadResponse { public String getFirstHeader(final ResponseHeader responseHeader) { for (final Header header : mHeaders) { if (header.getName().equalsIgnoreCase(responseHeader.getKey())) { return header.getValue(); } } return null; } }
DownloadResponse { public String getFirstHeader(final ResponseHeader responseHeader) { for (final Header header : mHeaders) { if (header.getName().equalsIgnoreCase(responseHeader.getKey())) { return header.getValue(); } } return null; } DownloadResponse(final HttpResponse httpResponse); }
DownloadResponse { public String getFirstHeader(final ResponseHeader responseHeader) { for (final Header header : mHeaders) { if (header.getName().equalsIgnoreCase(responseHeader.getKey())) { return header.getValue(); } } return null; } DownloadResponse(final HttpResponse httpResponse); byte[] getByteArray(); int getStatusCode(); long getContentLength(); String getFirstHeader(final ResponseHeader responseHeader); }
DownloadResponse { public String getFirstHeader(final ResponseHeader responseHeader) { for (final Header header : mHeaders) { if (header.getName().equalsIgnoreCase(responseHeader.getKey())) { return header.getValue(); } } return null; } DownloadResponse(final HttpResponse httpResponse); byte[] getByteArray(); int getStatusCode(); long getContentLength(); String getFirstHeader(final ResponseHeader responseHeader);  }