Class NavigateEntry
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class NavigateEntry implements Comparable<NavigateEntry>
Created by vincent on 18-1-1. Copyright @ 2013-2023 Platon AI. All rights reserved
-
-
Field Summary
Fields Modifier and Type Field Description private StringmainRequestIdprivate Map<String, Object>mainRequestHeadersprivate List<Map<String, String>>mainRequestCookiesprivate IntegermainResponseStatusprivate StringmainResponseStatusTextprivate Map<String, Object>mainResponseHeadersprivate InstantdocumentReadyTimeprivate final Map<String, Instant>actionTimesprivate final Stringurlprivate final IntegerpageIdprivate final StringpageUrlprivate StringpageReferrerprivate Stringlocationprivate Booleanstoppedprivate Booleanclosedprivate InstantlastActiveTimeprivate final InstantcreateTime
-
Method Summary
Modifier and Type Method Description final StringgetMainRequestId()final UnitsetMainRequestId(String mainRequestId)final Map<String, Object>getMainRequestHeaders()final UnitsetMainRequestHeaders(Map<String, Object> mainRequestHeaders)final List<Map<String, String>>getMainRequestCookies()final UnitsetMainRequestCookies(List<Map<String, String>> mainRequestCookies)final IntegergetMainResponseStatus()final UnitsetMainResponseStatus(Integer mainResponseStatus)final StringgetMainResponseStatusText()final UnitsetMainResponseStatusText(String mainResponseStatusText)final Map<String, Object>getMainResponseHeaders()final UnitsetMainResponseHeaders(Map<String, Object> mainResponseHeaders)final InstantgetDocumentReadyTime()The time when the document is ready. final UnitsetDocumentReadyTime(Instant documentReadyTime)The time when the document is ready. final Map<String, Instant>getActionTimes()Track the time of page actions. final StringgetUrl()The url to navigate to. final IntegergetPageId()The page id, 0 means there is no WebPage. final StringgetPageUrl()The page url which can be used to retrieve the WebPage from database. final StringgetPageReferrer()The referrer claimed by the page. final UnitsetPageReferrer(String pageReferrer)The referrer claimed by the page. final StringgetLocation()The location of the page, it shows in the browser window, can differ from url. final UnitsetLocation(String location)The location of the page, it shows in the browser window, can differ from url. final BooleangetStopped()Indicate if the navigation is stopped. final UnitsetStopped(Boolean stopped)Indicate if the navigation is stopped. final BooleangetClosed()Indicate if the tab for this navigation is closed. final UnitsetClosed(Boolean closed)Indicate if the tab for this navigation is closed. final InstantgetLastActiveTime()The last active time. final UnitsetLastActiveTime(Instant lastActiveTime)The last active time. final InstantgetCreateTime()The time when the object is created. final Unitrefresh(String action)Refresh the entry with the given action. Booleanequals(Object other)IntegerhashCode()IntegercompareTo(NavigateEntry other)-
-
Method Detail
-
getMainRequestId
final String getMainRequestId()
-
setMainRequestId
final Unit setMainRequestId(String mainRequestId)
-
getMainRequestHeaders
final Map<String, Object> getMainRequestHeaders()
-
setMainRequestHeaders
final Unit setMainRequestHeaders(Map<String, Object> mainRequestHeaders)
-
getMainRequestCookies
final List<Map<String, String>> getMainRequestCookies()
-
setMainRequestCookies
final Unit setMainRequestCookies(List<Map<String, String>> mainRequestCookies)
-
getMainResponseStatus
final Integer getMainResponseStatus()
-
setMainResponseStatus
final Unit setMainResponseStatus(Integer mainResponseStatus)
-
getMainResponseStatusText
final String getMainResponseStatusText()
-
setMainResponseStatusText
final Unit setMainResponseStatusText(String mainResponseStatusText)
-
getMainResponseHeaders
final Map<String, Object> getMainResponseHeaders()
-
setMainResponseHeaders
final Unit setMainResponseHeaders(Map<String, Object> mainResponseHeaders)
-
getDocumentReadyTime
final Instant getDocumentReadyTime()
The time when the document is ready.
-
setDocumentReadyTime
final Unit setDocumentReadyTime(Instant documentReadyTime)
The time when the document is ready.
-
getActionTimes
final Map<String, Instant> getActionTimes()
Track the time of page actions.
-
getUrl
final String getUrl()
The url to navigate to. If page.href exists, the url is the href, otherwise, the url is page.url. The href has the higher priority to locate a resource.
-
getPageUrl
final String getPageUrl()
The page url which can be used to retrieve the WebPage from database. An empty string means there is no WebPage.
-
getPageReferrer
final String getPageReferrer()
The referrer claimed by the page.
-
setPageReferrer
final Unit setPageReferrer(String pageReferrer)
The referrer claimed by the page.
-
getLocation
final String getLocation()
The location of the page, it shows in the browser window, can differ from url.
-
setLocation
final Unit setLocation(String location)
The location of the page, it shows in the browser window, can differ from url.
-
getStopped
final Boolean getStopped()
Indicate if the navigation is stopped.
-
setStopped
final Unit setStopped(Boolean stopped)
Indicate if the navigation is stopped.
-
getLastActiveTime
final Instant getLastActiveTime()
The last active time.
-
setLastActiveTime
final Unit setLastActiveTime(Instant lastActiveTime)
The last active time.
-
getCreateTime
final Instant getCreateTime()
The time when the object is created.
-
compareTo
Integer compareTo(NavigateEntry other)
-
-
-
-