Class Overview
Network fetcher that uses the simplest Android stack.
Apps requiring more sophisticated networking should implement their own
NetworkFetcher
.
Summary
[Expand]
Inherited Methods |
From class
com.facebook.imagepipeline.producers.BaseNetworkFetcher
Map<String, String>
|
getExtraMap(FETCH_STATE fetchState, int byteSize)
Gets a map containing extra parameters to pass to the listeners.
|
void
|
onFetchCompletion(FETCH_STATE fetchState, int byteSize)
Called after the fetch completes.
|
boolean
|
shouldPropagate(FETCH_STATE fetchState)
Gets whether the intermediate results should be propagated.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.imagepipeline.producers.NetworkFetcher
abstract
FETCH_STATE
|
createFetchState(Consumer<EncodedImage> consumer, ProducerContext producerContext)
Creates a new instance of the FetchState -derived object used to store state.
|
abstract
void
|
fetch(FETCH_STATE fetchState, NetworkFetcher.Callback callback)
Initiates the network fetch and informs the producer when a response is received via the
provided callback.
|
abstract
Map<String, String>
|
getExtraMap(FETCH_STATE fetchState, int byteSize)
Gets a map containing extra parameters to pass to the listeners.
|
abstract
void
|
onFetchCompletion(FETCH_STATE fetchState, int byteSize)
Called after the fetch completes.
|
abstract
boolean
|
shouldPropagate(FETCH_STATE fetchState)
Gets whether the intermediate results should be propagated.
|
|
Constants
public
static
final
int
HTTP_PERMANENT_REDIRECT
Constant Value:
308
(0x00000134)
public
static
final
int
HTTP_TEMPORARY_REDIRECT
Constant Value:
307
(0x00000133)
Public Constructors
public
HttpUrlConnectionNetworkFetcher
()
Public Methods