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

public class PathStateLocationImpl extends PathLocationImpl implements PathStateLocation
Author:
Bruno Salmon
  • Constructor Details

    • PathStateLocationImpl

      public PathStateLocationImpl(PathStateLocation pathStateLocation)
    • PathStateLocationImpl

      public PathStateLocationImpl(PathLocation pathLocation, Object state)
    • PathStateLocationImpl

      public PathStateLocationImpl(String path, String queryString, String fragment, Object state)
  • Method Details

    • getState

      public Object 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 interface PathStateLocation
      Returns:
      a json object representing the location state