public interface UrlFormatter
UrlState
objects into URL strings. Implementations are also responsible for
parsing HttpServletRequest objects into UrlState
objects.UrlState| Modifier and Type | Method and Description |
|---|---|
AggrERecUrlParam |
createAggrERecUrlParam(UrlState pUrlState,
com.endeca.navigation.AggrERec pAggrERec)
Creates an URL parameter containing an
AggrERec. |
ERecUrlParam |
createERecUrlParam(UrlState pUrlState,
com.endeca.navigation.ERec pERec)
Creates an URL parameter containing an
ERec. |
NavStateUrlParam |
createNavStateUrlParam(UrlState pUrlState)
Creates an URL parameter containing an empty
NavState. |
UrlParam |
createUrlParam(UrlState pUrlState,
String pKey,
String pValue)
Creates an URL parameter for the specified
UrlState. |
String |
formatCanonicalUrl(UrlState pUrlState)
Formats a canonical url.
|
String |
formatUrl(UrlState pUrlState)
Formats the specified
UrlState into an URL string. |
String |
getAggrERecParamKey()
The parameter key used for aggregate record detail links - typically "A".
|
String |
getDefaultEncoding()
Returns the default character encoding that should be used when
transforming URLs to and from various string forms.
|
String |
getERecParamKey()
The parameter key used for record detail links - typically "R".
|
String |
getNavStateParamKey()
The parameter key used for navigation state - typically "N".
|
UrlState |
parseRequest(javax.servlet.http.HttpServletRequest pRequest)
Parses the specified request into an
UrlState. |
UrlState |
parseRequest(String pQueryString,
String pPathInfo,
String pCharacterEncoding) |
UrlState parseRequest(javax.servlet.http.HttpServletRequest pRequest) throws UrlFormatException
UrlState.pRequest - the request to parse.UrlFormatException - if the request cannot be parsed.UrlState parseRequest(String pQueryString, String pPathInfo, String pCharacterEncoding) throws UrlFormatException
UrlFormatExceptionString formatUrl(UrlState pUrlState) throws UrlFormatException
UrlState into an URL string.pUrlState - the UrlState to format.UrlFormatException - if the UrlState cannot be formatted.String formatCanonicalUrl(UrlState pUrlState) throws UrlFormatException
pUrlState - The URL State to use to format the URL.UrlFormatException - Throws formatting exception.String getDefaultEncoding()
UrlState.UrlState.UrlState(UrlFormatter,String)UrlParam createUrlParam(UrlState pUrlState, String pKey, String pValue)
UrlState. This is
an internal method used by an UrlState. You shouldn't need to
use this method unless you are implementing a custom UrlFormatter.pUrlState - the UrlState that will contain the parameter.pKey - the parameter key.pValue - the parameter string value (fully decoded).ERecUrlParam createERecUrlParam(UrlState pUrlState, com.endeca.navigation.ERec pERec)
ERec. This is
an internal method used by an UrlState. You shouldn't need to
use this method unless you are implementing a custom UrlFormatter.pUrlState - the UrlState that will contain the parameter.pERec - the ERec to be contained in the UrlState.getERecParamKey()AggrERecUrlParam createAggrERecUrlParam(UrlState pUrlState, com.endeca.navigation.AggrERec pAggrERec)
AggrERec. This is
an internal method used by an UrlState. You shouldn't need to
use this method unless you are implementing a custom UrlFormatter.pUrlState - the UrlState that will contain the parameter.pAggrERec - the AggrERec to be contained in the UrlState.getAggrERecParamKey()NavStateUrlParam createNavStateUrlParam(UrlState pUrlState)
NavState. This is
an internal method used by an UrlState. You shouldn't need to
use this method unless you are implementing a custom UrlFormatter.pUrlState - the UrlState that will contain the parameter.getNavStateParamKey()String getNavStateParamKey()
createNavStateUrlParam(UrlState)String getERecParamKey()
String getAggrERecParamKey()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.