public static interface ParseNetworkInterceptor.Chain
Chain
is used to chain the interceptors. It can get the request from the previous
interceptor, proceed the request to the next interceptor and get the response from the next
interceptor. In most of the cases, you don't need to implement this interface.Modifier and Type | Method and Description |
---|---|
ParseHttpRequest |
getRequest()
Gets the
ParseHttpRequest from this chain. |
ParseHttpResponse |
proceed(ParseHttpRequest request)
Proceeds the intercepted
ParseHttpRequest in this chain to next
ParseNetworkInterceptor or network and gets the ParseHttpResponse . |
ParseHttpRequest getRequest()
ParseHttpRequest
from this chain.ParseHttpRequest
of this chain.ParseHttpResponse proceed(ParseHttpRequest request) throws IOException
ParseHttpRequest
in this chain to next
ParseNetworkInterceptor
or network and gets the ParseHttpResponse
.request
- The intercepted ParseHttpRequest
.ParseHttpResponse
from next ParseNetworkInterceptor
or network.IOException