Class PathStateLocationImpl
java.lang.Object
dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
dev.webfx.platform.windowlocation.spi.impl.PathStateLocationImpl
- All Implemented Interfaces:
PathLocation
,PathStateLocation
- Direct Known Subclasses:
BrowsingHistoryLocationImpl
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorsConstructorDescriptionPathStateLocationImpl
(PathLocation pathLocation, Object state) PathStateLocationImpl
(PathStateLocation pathStateLocation) PathStateLocationImpl
(String path, String queryString, String fragment, Object state) -
Method Summary
Methods inherited from class dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
equals, getFragment, getPathname, getQueryString, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.windowlocation.spi.PathLocation
getFragment, getHash, getPath, getPathname, getQueryString, getSearch
-
Constructor Details
-
PathStateLocationImpl
-
PathStateLocationImpl
-
PathStateLocationImpl
-
-
Method Details
-
getState
Description copied from interface:PathStateLocation
A location state is an arbitrary object of data associated with a particular location. This is basically a way to tie extra state to a location that is not contained in the URL. This type gets its name from the first argument to HTML5's pushState and replaceState methods.- Specified by:
getState
in interfacePathStateLocation
- Returns:
- a json object representing the location state
-