|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UrlFormatter
An interface that is responsible for formatting UrlState
objects into URL strings. Implementations are also responsible for
parsing HttpServletRequest objects into UrlState
objects.
UrlState| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
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
UrlFormatException
String 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()
createERecUrlParam(UrlState,com.endeca.navigation.ERec)String getAggrERecParamKey()
createAggrERecUrlParam(UrlState,com.endeca.navigation.AggrERec)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||