Interface NavigationFinished
- All Superinterfaces:
Event
,NavigationEvent
An event indicating that the navigation has been finished. This happens when a navigation is
committed, aborted, or replaced by a new one.
-
Method Summary
Modifier and TypeMethodDescriptiondefault NetError
error()
Returns the navigation error in case the navigation has failed.default Frame
frame()
Returns theFrame
instance initiated this navigation.default boolean
Returnstrue
if the navigation has committed.default boolean
Returnstrue
if the navigation resulted in an error page.default boolean
Returnstrue
if the navigation has been performed to a fragment within the same document.default boolean
Returnstrue
if the navigation is taking place in the main frame.default boolean
Returnstrue
if the navigation has been performed in the scope of the same document.default boolean
Returnstrue
if the navigation has encountered a server redirect.default Navigation
Returns theNavigation
instance initiated this event.default String
url()
Returns a string that represents the URL of this navigation.
-
Method Details
-
frame
Returns theFrame
instance initiated this navigation. -
url
Returns a string that represents the URL of this navigation. -
isSameDocument
default boolean isSameDocument()Returnstrue
if the navigation has been performed in the scope of the same document. -
isInMainFrame
default boolean isInMainFrame()Returnstrue
if the navigation is taking place in the main frame.- Since:
- 7.5
-
isServerRedirect
default boolean isServerRedirect()Returnstrue
if the navigation has encountered a server redirect. -
hasCommitted
default boolean hasCommitted()Returnstrue
if the navigation has committed. -
isErrorPage
default boolean isErrorPage()Returnstrue
if the navigation resulted in an error page. -
error
Returns the navigation error in case the navigation has failed.