The primary classes and interfaces of the URL Optimization API are
UrlState
,
UrlFormatter
, and
QueryBuilder
.
A
UrlState
instance represents the URL, including any
parameters, for a particular navigation state in Your application. You
typically create a
UrlState
by using a
UrlFormatter
to parse a URL string. You then inform
the
UrlState
of the navigation state that it represents by
passing it a set of query results. When the
UrlState
is informed, you can modify it in order to
generate URLs representing links to other states in your application, such as
selecting refinements.
A
UrlFormatter
is responsible for parsing URL strings
into
UrlState
objects and transforming
UrlState
objects back into URLs. The
SeoUrlFormatter
is a highly configurable
implementation of
UrlFormatter
that parses and generates search
engine-optimized URLs.
A
QueryBuilder
marshals
UrlState
objects into MDEX Engine queries. The
BasicQueryBuilder
is an implementation of
QueryBuilder
that creates
ENEQuery
objects from a given
UrlState
.
For more information about these and other classes, refer to the Assembler API Reference (Javadoc).