| java.lang.Object | |
| ↳ | org.chromium.net.RequestFinishedInfo |
Information about a finished request. Passed to RequestFinishedInfo.Listener.
To associate the data with the original request, use addRequestAnnotation(Object) to add a unique identifier when creating the
request, and call getAnnotations() when the RequestFinishedInfo is received to
retrieve the identifier.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RequestFinishedInfo.Listener | Listens for finished requests for the purpose of collecting metrics. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CANCELED | Reason value indicating that the request was canceled. | |||||||||
| int | FAILED | Reason value indicating that the request failed or returned an error. | |||||||||
| int | SUCCEEDED | Reason value indicating that the request succeeded. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the objects that the caller has supplied when initiating the request, using
addRequestAnnotation(Object). | |||||||||||
If the request failed, returns the same
CronetException provided to onFailed(UrlRequest, UrlResponseInfo, CronetException). | |||||||||||
Returns the reason why the request finished.
| |||||||||||
Returns a
UrlResponseInfo for the request, if its response had started. | |||||||||||
Returns the request's original URL.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
Reason value indicating that the request was canceled. Returned from getFinishedReason().
Reason value indicating that the request failed or returned an error. Returned from getFinishedReason().
Reason value indicating that the request succeeded. Returned from getFinishedReason().
Returns the objects that the caller has supplied when initiating the request, using addRequestAnnotation(Object). Annotations can be used to associate a
RequestFinishedInfo with the original request or type of request.
| Returns | |
|---|---|
Collection<Object> |
annotations supplied when creating the request |
If the request failed, returns the same CronetException provided to onFailed(UrlRequest, UrlResponseInfo, CronetException).
| Returns | |
|---|---|
CronetException |
the request's CronetException, if the request failed
|
Returns a UrlResponseInfo for the request, if its response had started.
| Returns | |
|---|---|
UrlResponseInfo |
UrlResponseInfo for the request, if its response had started.
|
Returns the request's original URL.
| Returns | |
|---|---|
String |
the request's original URL |