public interface InterceptRequestCallback extends NetworkSyncCallback<InterceptRequestCallback.Params,InterceptRequestCallback.Response>
Use the InterceptRequestCallback.Response.intercept(UrlRequestJob)
method to intercept the request and
override the response data using the returned UrlRequestJob
.
Use the InterceptRequestCallback.Response.proceed()
method if you do not need to intercept the request.
The callback can be used to intercept a URL request and send a URL response as it was sent from a web server.
Modifier and Type | Interface and Description |
---|---|
static interface |
InterceptRequestCallback.Params
The parameters of the
InterceptRequestCallback . |
static interface |
InterceptRequestCallback.Response
A response for
InterceptRequestCallback . |
on