Class: urlParamAdapter
Oracle® JavaScript Extension Toolkit (JET)
17.1.0
G12196-01
- Since:
- 1.1.0
- Module:
- ojrouter
Note: This class is deprecated since 9.0.0. Use alternative: CoreRouter.
Description
Url adapter used by the oj.Router to manage URL in the form of
/index.html?root=book&book=chapter2
. This adapter
can be used if the urlPathAdapter doesn't meet
the application's needs.
This adapter is well-suited for single-page applications whose entry point
is always a single document, i.e., "index.html" which restores its router state
from additional parameters. The router state is encoded as URL parameters and
then restored after the page is loaded. This is ideal for applications which
cannot handle multiple entry points, as recommended by urlPathAdapter.
There are two available
URL adapters, this one and the urlPathAdapter.
To change
the URL adapter, use the urlAdapter property.