public final class NavigationEntry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NavigationEntry.PageType
The type of the page a
NavigationEntry对应的页面类型。 NavigationEntry corresponds to.
|
Constructor and Description |
---|
NavigationEntry(java.lang.String url, java.lang.String title, long timestamp, NavigationEntry.PageType pageType, int httpStatusCode, java.lang.String originalRequestURL) |
Modifier and Type | Method and Description |
---|---|
int |
getHTTPStatusCode()
Returns the status code of the last known successful navigation.
返回上一次成功导航的状态码。 |
java.lang.String |
getOriginalURL()
Returns the URL that caused this
返回导致创建该NavigationEntry的URL。 NavigationEntry to be created.
|
NavigationEntry.PageType |
getPageType()
Returns the page type that tells if this entry is for an interstitial or error page.
返回告诉该条目是非页内页面还是错误页面的页面类型。 |
long |
getTimestamp()
The time at which the last known local navigation has completed.
最后一次已知的本地导航完成的时间。 |
java.lang.String |
getTitle()
Returns the title as set by the page.
返回页面设置的标题。 |
java.lang.String |
getURL()
Returns the actual URL of the web page.
返回网页的实际URL。 |
public NavigationEntry(java.lang.String url, java.lang.String title, long timestamp, NavigationEntry.PageType pageType, int httpStatusCode, java.lang.String originalRequestURL)
public NavigationEntry.PageType getPageType()
public java.lang.String getURL()
null
.
一个字符串,代表网页的实际URL。不可能是 。
public java.lang.String getTitle()
null
.
代表页面标题的字符串。可以为空。不可能是 。
public java.lang.String getOriginalURL()
NavigationEntry
to be created.
public long getTimestamp()
public int getHTTPStatusCode()