@Immutable public class RequestParameterHandlerURLParameter extends AbstractRequestParameterHandlerNamed
IRequestParameterHandler that takes the request
parameters from the URL parameters. It build URLs in the form
basePath[[?&]paramName=paramValue]*DEFAULT_REQUEST_PARAMETER_DISPLAY_LOCALE, DEFAULT_REQUEST_PARAMETER_MENUITEM| Constructor and Description |
|---|
RequestParameterHandlerURLParameter() |
| 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.
|
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.
|
boolean |
isValidParameterName(String sParamName)
Check if the passed parameter name is valid according to the rules of this
parameter handler.
|
getRequestParamNameLocale, getRequestParamNameMenuItem, setRequestParamNameLocale, setRequestParamNameMenuItem, toString@Nonnull @ReturnsMutableCopy public PhotonRequestParameters getParametersFromRequest(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope)
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)
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)
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.public boolean isValidParameterName(@Nonnull String sParamName)
AbstractRequestParameterHandlerNamedisValidParameterName in class AbstractRequestParameterHandlerNamedsParamName - The parameter name to check. May not be null.true if the parameter is valid, false
otherwise.Copyright © 2014–2017 Philip Helger. All rights reserved.