public interface BeforeUrlRequestCallback extends NetworkSyncCallback<BeforeUrlRequestCallback.Params,BeforeUrlRequestCallback.Response>
The callback can be used to redirect the request to another location.
Use the BeforeUrlRequestCallback.Response.redirect(String)
method to redirect the request to another location.
Use the BeforeUrlRequestCallback.Response.proceed()
method if you do not need to redirect the location.
If the callback throws an exception, the BeforeUrlRequestCallback.Response.proceed()
method will be invoked.
Modifier and Type | Interface and Description |
---|---|
static interface |
BeforeUrlRequestCallback.Params
The parameters of the
BeforeUrlRequestCallback . |
static interface |
BeforeUrlRequestCallback.Response
A response for
BeforeUrlRequestCallback . |
on