public final class PageParametersExtensions extends Object
| Constructor and Description |
|---|
PageParametersExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParameters(org.apache.wicket.request.IRequestParameters parameters,
Map<String,String[]> parameterMap)
Adds the given parameters to the given map.
|
static void |
addToParameters(org.apache.wicket.request.IRequestParameters parameters,
Map<String,List<org.apache.wicket.util.string.StringValue>> parameterMap)
Adds the given parameters to the given map.
|
static org.apache.wicket.request.mapper.parameter.PageParameters |
copy(org.apache.wicket.request.mapper.parameter.PageParameters source,
org.apache.wicket.request.mapper.parameter.PageParameters destination)
Copies all given source
PageParameters to
the given destination PageParameters. |
static void |
copyToWicketSession(org.apache.wicket.request.mapper.parameter.PageParameters source,
org.apache.wicket.Session session)
Copies all given source
PageParameters to
the given session Session. |
static Integer |
getInteger(org.apache.wicket.util.string.StringValue stringValue)
Deprecated.
use instead the
toInteger(StringValue) |
static Map<String,List<org.apache.wicket.util.string.StringValue>> |
getPageParametersMap(org.apache.wicket.request.Request request)
Gets a map with all parameters.
|
static String |
getParameter(org.apache.wicket.request.mapper.parameter.PageParameters parameters,
String name)
Gets the parameter or returns null if it does not exists or is empty.
|
static String |
getParameter(org.apache.wicket.request.Request request,
String parameterName)
Gets the parameter value from given parameter name.
|
static String |
getParameter(String parameterName)
Gets the parameter value from given parameter name.
|
static Map<String,String[]> |
getParameterMap()
Gets a map with all parameters.
|
static Map<String,String[]> |
getParameterMap(org.apache.wicket.request.Request request)
Gets a map with all parameters.
|
static String |
getString(org.apache.wicket.util.string.StringValue value)
Gets the string from the given
StringValue or null if it is null or is empty. |
static boolean |
isNotNullOrEmpty(org.apache.wicket.util.string.StringValue stringValue)
Checks if the given StringValue is not null and the value of the given StringValue object is
not null and the value of the given StringValue object is not empty.
|
static boolean |
isNullOrEmpty(org.apache.wicket.util.string.StringValue stringValue)
Checks if the given StringValue is null or the value of the given StringValue object is null
or the value of the given StringValue object is empty.
|
static Integer |
toInteger(org.apache.wicket.util.string.StringValue stringValue)
Gets the Integer object or returns null if the given StringValue is null or empty.
|
static org.apache.wicket.request.mapper.parameter.PageParameters |
toPageParameters(Map<String,String> parameters)
Converts the given Map to a
PageParameters object. |
public static void addParameters(org.apache.wicket.request.IRequestParameters parameters,
Map<String,String[]> parameterMap)
parameters - The parameters to add to the map.parameterMap - The map to add the parameters.public static void addToParameters(org.apache.wicket.request.IRequestParameters parameters,
Map<String,List<org.apache.wicket.util.string.StringValue>> parameterMap)
parameters - The parameters to add to the map.parameterMap - The map to add the parameters.public static org.apache.wicket.request.mapper.parameter.PageParameters copy(org.apache.wicket.request.mapper.parameter.PageParameters source,
org.apache.wicket.request.mapper.parameter.PageParameters destination)
PageParameters to
the given destination PageParameters.source - The source PageParameters.destination - The destination PageParameters.PageParameters
with the copied keys and values.public static void copyToWicketSession(org.apache.wicket.request.mapper.parameter.PageParameters source,
org.apache.wicket.Session session)
PageParameters to
the given session Session.source - The source PageParameters.session - The session where the
PageParameters are stored.@Deprecated public static Integer getInteger(org.apache.wicket.util.string.StringValue stringValue)
toInteger(StringValue)stringValue - the user id as StringValue objectpublic static Map<String,List<org.apache.wicket.util.string.StringValue>> getPageParametersMap(org.apache.wicket.request.Request request)
request - the requestpublic static String getParameter(org.apache.wicket.request.mapper.parameter.PageParameters parameters, String name)
parameters - the parametersname - the namepublic static String getParameter(org.apache.wicket.request.Request request, String parameterName)
request - the requestparameterName - the parameter namepublic static String getParameter(String parameterName)
parameterName - the parameter namepublic static Map<String,String[]> getParameterMap()
public static Map<String,String[]> getParameterMap(org.apache.wicket.request.Request request)
request - the requestpublic static String getString(org.apache.wicket.util.string.StringValue value)
StringValue or null if it is null or is empty.value - the StringValuepublic static final boolean isNotNullOrEmpty(org.apache.wicket.util.string.StringValue stringValue)
Checks if the given StringValue is not null and the value of the given StringValue object is not null and the value of the given StringValue object is not empty.
stringValue - the StringValue to check, may be nulltrue if the StringValue is not null and the value of the given
StringValue object is not null and the value of the given StringValue object is not
empty otherwise false.public static final boolean isNullOrEmpty(org.apache.wicket.util.string.StringValue stringValue)
Checks if the given StringValue is null or the value of the given StringValue object is null or the value of the given StringValue object is empty.
stringValue - the StringValue to check, may be nulltrue if the StringValue is null or the value of the given StringValue
object is null or the value of the given StringValue object is empty.public static Integer toInteger(org.apache.wicket.util.string.StringValue stringValue)
stringValue - the user id as StringValue objectCopyright © 2010–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.