Interface BeforeUrlRequestCallback
- All Superinterfaces:
Callback
,NetworkCallback
,NetworkSyncCallback<BeforeUrlRequestCallback.Params,
,BeforeUrlRequestCallback.Response> SyncCallback<BeforeUrlRequestCallback.Params,
BeforeUrlRequestCallback.Response>
public interface BeforeUrlRequestCallback
extends NetworkSyncCallback<BeforeUrlRequestCallback.Params,BeforeUrlRequestCallback.Response>
The callback is invoked when an HTTP request is about to occur.
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The parameters of theBeforeUrlRequestCallback
.static interface
A response forBeforeUrlRequestCallback
. -
Method Summary
Methods inherited from interface com.teamdev.jxbrowser.callback.SyncCallback
on