media/docs/doc/reference-v1/com/google/android/exoplayer/upstream/HttpDataSource.html
2021-04-20 17:32:19 +01:00

481 lines
28 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Wed Dec 14 17:18:29 GMT 2016 -->
<title>HttpDataSource (ExoPlayer library)</title>
<meta name="date" content="2016-12-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="HttpDataSource (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/android/exoplayer/upstream/FileDataSource.FileDataSourceException.html" title="class in com.google.android.exoplayer.upstream"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer/upstream/HttpDataSource.html" target="_top">Frames</a></li>
<li><a href="HttpDataSource.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.android.exoplayer.upstream</div>
<h2 title="Interface HttpDataSource" class="title">Interface HttpDataSource</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a>, <a href="../../../../../com/google/android/exoplayer/upstream/UriDataSource.html" title="interface in com.google.android.exoplayer.upstream">UriDataSource</a></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../../../com/google/android/exoplayer/upstream/DefaultHttpDataSource.html" title="class in com.google.android.exoplayer.upstream">DefaultHttpDataSource</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">HttpDataSource</span>
extends <a href="../../../../../com/google/android/exoplayer/upstream/UriDataSource.html" title="interface in com.google.android.exoplayer.upstream">UriDataSource</a></pre>
<div class="block">An HTTP specific extension to <a href="../../../../../com/google/android/exoplayer/upstream/UriDataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>UriDataSource</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></span></code>
<div class="block">Thrown when an error is encountered when trying to read from a <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>HttpDataSource</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.InvalidContentTypeException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.InvalidContentTypeException</a></span></code>
<div class="block">Thrown when the content type is invalid.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.InvalidResponseCodeException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.InvalidResponseCodeException</a></span></code>
<div class="block">Thrown when an attempt to open a connection results in a response code not in the 2xx range.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/android/exoplayer/util/Predicate.html" title="interface in com.google.android.exoplayer.util">Predicate</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#REJECT_PAYWALL_TYPES">REJECT_PAYWALL_TYPES</a></span></code>
<div class="block">A <a href="../../../../../com/google/android/exoplayer/util/Predicate.html" title="interface in com.google.android.exoplayer.util"><code>Predicate</code></a> that rejects content types often used for pay-walls.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#clearAllRequestProperties--">clearAllRequestProperties</a></span>()</code>
<div class="block">Clears all request header fields that were set by <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#setRequestProperty-java.lang.String-java.lang.String-"><code>setRequestProperty(String, String)</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#clearRequestProperty-java.lang.String-">clearRequestProperty</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
<div class="block">Clears the value of a request header field.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#close--">close</a></span>()</code>
<div class="block">Closes the <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>DataSource</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#getResponseHeaders--">getResponseHeaders</a></span>()</code>
<div class="block">Gets the headers provided in the response.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-">open</a></span>(<a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a>&nbsp;dataSpec)</code>
<div class="block">Opens the <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>DataSource</code></a> to read the specified data.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#read-byte:A-int-int-">read</a></span>(byte[]&nbsp;buffer,
int&nbsp;offset,
int&nbsp;readLength)</code>
<div class="block">Reads up to <code>length</code> bytes of data and stores them into <code>buffer</code>, starting at
index <code>offset</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#setRequestProperty-java.lang.String-java.lang.String-">setRequestProperty</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Sets the value of a request header field.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.google.android.exoplayer.upstream.UriDataSource">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;com.google.android.exoplayer.upstream.<a href="../../../../../com/google/android/exoplayer/upstream/UriDataSource.html" title="interface in com.google.android.exoplayer.upstream">UriDataSource</a></h3>
<code><a href="../../../../../com/google/android/exoplayer/upstream/UriDataSource.html#getUri--">getUri</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="REJECT_PAYWALL_TYPES">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>REJECT_PAYWALL_TYPES</h4>
<pre>static final&nbsp;<a href="../../../../../com/google/android/exoplayer/util/Predicate.html" title="interface in com.google.android.exoplayer.util">Predicate</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; REJECT_PAYWALL_TYPES</pre>
<div class="block">A <a href="../../../../../com/google/android/exoplayer/util/Predicate.html" title="interface in com.google.android.exoplayer.util"><code>Predicate</code></a> that rejects content types often used for pay-walls.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="open-com.google.android.exoplayer.upstream.DataSpec-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>open</h4>
<pre>long&nbsp;open(<a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a>&nbsp;dataSpec)
throws <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-">DataSource</a></code></span></div>
<div class="block">Opens the <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>DataSource</code></a> to read the specified data. Calls to <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-"><code>DataSource.open(DataSpec)</code></a> and
<a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#close--"><code>DataSource.close()</code></a> must be balanced.
<p>
Note: If <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-"><code>DataSource.open(DataSpec)</code></a> throws an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>, callers must still call
<a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#close--"><code>DataSource.close()</code></a> to ensure that any partial effects of the <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-"><code>DataSource.open(DataSpec)</code></a> invocation
are cleaned up. Implementations of this class can assume that callers will call
<a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#close--"><code>DataSource.close()</code></a> in this case.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-">open</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dataSpec</code> - Defines the data to be read.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The number of bytes that can be read from the opened source. For unbounded requests
(i.e. requests where <a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html#length"><code>DataSpec.length</code></a> equals <a href="../../../../../com/google/android/exoplayer/C.html#LENGTH_UNBOUNDED"><code>C.LENGTH_UNBOUNDED</code></a>) this value
is the resolved length of the request, or <a href="../../../../../com/google/android/exoplayer/C.html#LENGTH_UNBOUNDED"><code>C.LENGTH_UNBOUNDED</code></a> if the length is still
unresolved. For all other requests, the value returned will be equal to the request's
<a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html#length"><code>DataSpec.length</code></a>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></code></dd>
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>void&nbsp;close()
throws <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#close--">DataSource</a></code></span></div>
<div class="block">Closes the <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream"><code>DataSource</code></a>.
<p>
Note: This method will be called even if the corresponding call to <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-"><code>DataSource.open(DataSpec)</code></a>
threw an <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>. See <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#open-com.google.android.exoplayer.upstream.DataSpec-"><code>DataSource.open(DataSpec)</code></a> for more details.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#close--">close</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></code></dd>
</dl>
</li>
</ul>
<a name="read-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read</h4>
<pre>int&nbsp;read(byte[]&nbsp;buffer,
int&nbsp;offset,
int&nbsp;readLength)
throws <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#read-byte:A-int-int-">DataSource</a></code></span></div>
<div class="block">Reads up to <code>length</code> bytes of data and stores them into <code>buffer</code>, starting at
index <code>offset</code>.
<p>
This method blocks until at least one byte of data can be read, the end of the opened range is
detected, or an exception is thrown.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html#read-byte:A-int-int-">read</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buffer</code> - The buffer into which the read data should be stored.</dd>
<dd><code>offset</code> - The start offset into <code>buffer</code> at which data should be written.</dd>
<dd><code>readLength</code> - The maximum number of bytes to read.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The number of bytes read, or <a href="../../../../../com/google/android/exoplayer/C.html#RESULT_END_OF_INPUT"><code>C.RESULT_END_OF_INPUT</code></a> if the end of the opened
range is reached.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream">HttpDataSource.HttpDataSourceException</a></code></dd>
</dl>
</li>
</ul>
<a name="setRequestProperty-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRequestProperty</h4>
<pre>void&nbsp;setRequestProperty(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Sets the value of a request header field. The value will be used for subsequent connections
established by the source.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name of the header field.</dd>
<dd><code>value</code> - The value of the field.</dd>
</dl>
</li>
</ul>
<a name="clearRequestProperty-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearRequestProperty</h4>
<pre>void&nbsp;clearRequestProperty(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
<div class="block">Clears the value of a request header field. The change will apply to subsequent connections
established by the source.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name of the header field.</dd>
</dl>
</li>
</ul>
<a name="clearAllRequestProperties--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearAllRequestProperties</h4>
<pre>void&nbsp;clearAllRequestProperties()</pre>
<div class="block">Clears all request header fields that were set by <a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.html#setRequestProperty-java.lang.String-java.lang.String-"><code>setRequestProperty(String, String)</code></a>.</div>
</li>
</ul>
<a name="getResponseHeaders--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getResponseHeaders</h4>
<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt;&nbsp;getResponseHeaders()</pre>
<div class="block">Gets the headers provided in the response.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The response headers, or <code>null</code> if response headers are unavailable.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/android/exoplayer/upstream/FileDataSource.FileDataSourceException.html" title="class in com.google.android.exoplayer.upstream"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../com/google/android/exoplayer/upstream/HttpDataSource.HttpDataSourceException.html" title="class in com.google.android.exoplayer.upstream"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/android/exoplayer/upstream/HttpDataSource.html" target="_top">Frames</a></li>
<li><a href="HttpDataSource.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>