/** * Returns the response headers as a list of {@link NameValuePair}s. * @return the response headers as a list of {@link NameValuePair}s */ public List<NameValuePair> getResponseHeaders() { return responseData_.getResponseHeaders(); }
/** * {@inheritDoc} */ public List<NameValuePair> getResponseHeaders() { return responseData_.getResponseHeaders(); }
/** * {@inheritDoc} */ public List<NameValuePair> getResponseHeaders() { return responseData_.getResponseHeaders(); }
/** * {@inheritDoc} */ public List<NameValuePair> getResponseHeaders() { return responseData_.getResponseHeaders(); }
/** * Returns the response headers as a list of {@link NameValuePair}s. * @return the response headers as a list of {@link NameValuePair}s */ public List<NameValuePair> getResponseHeaders() { return responseData_.getResponseHeaders(); }
/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream * @throws IOException in case of IO problems */ public InputStream getInputStream() throws IOException { return getStream(downloadedContent_, getResponseHeaders()); }
/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream * @throws IOException in case of IO problems */ public InputStream getInputStream() throws IOException { return getStream(downloadedContent_, getResponseHeaders()); }
/** * {@inheritDoc} */ public String getResponseHeaderValue(final String headerName) { for (final NameValuePair pair : responseData_.getResponseHeaders()) { if (pair.getName().equalsIgnoreCase(headerName)) { return pair.getValue(); } } return null; }
/** * {@inheritDoc} */ public String getResponseHeaderValue(final String headerName) { for (final NameValuePair pair : responseData_.getResponseHeaders()) { if (pair.getName().equalsIgnoreCase(headerName)) { return pair.getValue(); } } return null; }
/** * {@inheritDoc} */ public String getResponseHeaderValue(final String headerName) { for (final NameValuePair pair : responseData_.getResponseHeaders()) { if (pair.getName().equalsIgnoreCase(headerName)) { return pair.getValue(); } } return null; }
/** * Returns a new {@link InputStream} allowing to read the downloaded content. * @return the associated InputStream */ public InputStream getInputStream() { try { return getStream(downloadedContent_.getInputStream(), getResponseHeaders()); } catch (final IOException e) { throw new RuntimeException(e); // in fact getInputStream should probably have throw declaration } }
/** * Returns the value of the specified response header. * @param headerName the name of the header whose value is to be returned * @return the header value, {@code null} if no response header exists with this name */ public String getResponseHeaderValue(final String headerName) { for (final NameValuePair pair : responseData_.getResponseHeaders()) { if (pair.getName().equalsIgnoreCase(headerName)) { return pair.getValue(); } } return null; }
/** * Returns the value of the specified response header. * @param headerName the name of the header whose value is to be returned * @return the header value, {@code null} if no response header exists with this name */ public String getResponseHeaderValue(final String headerName) { for (final NameValuePair pair : responseData_.getResponseHeaders()) { if (pair.getName().equalsIgnoreCase(headerName)) { return pair.getValue(); } } return null; }