@Immutable public class RequestParameterHandlerURLPathOrdered extends Object implements IRequestParameterHandler
IRequestParameterHandler that takes the request
parameters from the URL path in the fixed order locale than menu item. It
build URLs in the form basePath/locale/menuItem| Constructor and Description |
|---|
RequestParameterHandlerURLPathOrdered()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.url.SimpleURL |
buildURL(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
String sBasePath,
Locale aDisplayLocale,
String sMenuItemID)
Build a URL based on the passed base path and an optional list of
parameters.
|
protected PhotonRequestParameters |
getParametersFromPath(String sPath) |
PhotonRequestParameters |
getParametersFromRequest(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
Get all request parameters from the provided request.
|
PhotonRequestParameters |
getParametersFromURL(com.helger.commons.url.ISimpleURL aURL)
Get all request parameters from the provided URL.
|
String |
toString() |
public RequestParameterHandlerURLPathOrdered()
@Nonnull protected PhotonRequestParameters getParametersFromPath(@Nonnull String sPath)
@Nonnull @ReturnsMutableCopy public PhotonRequestParameters getParametersFromRequest(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
IRequestParameterHandlergetParametersFromRequest in interface IRequestParameterHandleraRequestScope - The current request scope. May not be null.null list of all parameters.@Nonnull @ReturnsMutableCopy public PhotonRequestParameters getParametersFromURL(@Nonnull com.helger.commons.url.ISimpleURL aURL)
IRequestParameterHandlergetParametersFromURL in interface IRequestParameterHandleraURL - The URL to extract the parameters from. May not be
null.null list of all parameters.@Nonnull public com.helger.commons.url.SimpleURL buildURL(@Nullable com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull @Nonempty String sBasePath, @Nullable Locale aDisplayLocale, @Nullable String sMenuItemID)
IRequestParameterHandlerbuildURL in interface IRequestParameterHandleraRequestScope - Current request scope. May be null.sBasePath - The base path to use. May not be null and must NOT end
with a "/".aDisplayLocale - The display locale to use. May be null.sMenuItemID - The menu item ID to use. May be null.Copyright © 2014–2017 Philip Helger. All rights reserved.