history.Html5History.TokenTransformer
A token transformer that can create a URL from a history token. This is used by goog.history.Html5History to create URL when storing token without the hash fragment. Given a window.location object containing the location created by createUrl, the token transformer allows retrieval of the token back via retrieveToken.

Inheritance

Constructor

goog.history.Html5History.TokenTransformer()

Instance Methods

Public Protected Private
createUrl(tokenpathPrefixlocation) string
Creates a URL to be pushed into HTML5 history stack when storing token without using hash fragment.
Arguments:
token : string
The history token.
pathPrefix : string
The path prefix to use when storing token in a path; always begin with a slash.
location : Location
The window.location object. Treat this object as read-only.
Returns: string  url The complete URL string from path onwards (without protocol://host:port part); must begin with a slash.
code »
retrieveToken(pathPrefixlocation) string
Retrieves a history token given the path prefix and window.location object.
Arguments:
pathPrefix : string
The path prefix to use when storing token in a path; always begin with a slash.
location : Location
The window.location object. Treat this object as read-only.
Returns: string  token The history token.
code »

Package history.Html5History

Package Reference