public class ParamUtil
extends Object
Constructor and Description |
---|
ParamUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
get(javax.servlet.http.HttpServletRequest request,
String param,
boolean defaultValue)
Returns the request parameter value as a boolean.
|
static Date |
get(javax.servlet.http.HttpServletRequest request,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the request parameter value as a Date.
|
static double |
get(javax.servlet.http.HttpServletRequest request,
String param,
double defaultValue)
Returns the request parameter value as a double.
|
static float |
get(javax.servlet.http.HttpServletRequest request,
String param,
float defaultValue)
Returns the request parameter value as a float.
|
static int |
get(javax.servlet.http.HttpServletRequest request,
String param,
int defaultValue)
Returns the request parameter value as an integer.
|
static long |
get(javax.servlet.http.HttpServletRequest request,
String param,
long defaultValue)
Returns the request parameter value as a long.
|
static Number |
get(javax.servlet.http.HttpServletRequest request,
String param,
Number defaultValue)
Returns the request parameter value as a Number.
|
static short |
get(javax.servlet.http.HttpServletRequest request,
String param,
short defaultValue)
Returns the request parameter value as a short.
|
static String |
get(javax.servlet.http.HttpServletRequest request,
String param,
String defaultValue)
Returns the request parameter value as a String.
|
static boolean |
get(PortletRequest portletRequest,
String param,
boolean defaultValue)
Returns the portlet request parameter value as a boolean.
|
static Date |
get(PortletRequest portletRequest,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the portlet request parameter value as a Date.
|
static double |
get(PortletRequest portletRequest,
String param,
double defaultValue)
Returns the portlet request parameter value as a double.
|
static float |
get(PortletRequest portletRequest,
String param,
float defaultValue)
Returns the portlet request parameter value as a float.
|
static int |
get(PortletRequest portletRequest,
String param,
int defaultValue)
Returns the portlet request parameter value as an integer.
|
static long |
get(PortletRequest portletRequest,
String param,
long defaultValue)
Returns the portlet request parameter value as a long.
|
static Number |
get(PortletRequest portletRequest,
String param,
Number defaultValue)
Returns the portlet request parameter value as a Number.
|
static short |
get(PortletRequest portletRequest,
String param,
short defaultValue)
Returns the portlet request parameter value as a short.
|
static String |
get(PortletRequest portletRequest,
String param,
String defaultValue)
Returns the portlet request parameter value as a String.
|
static boolean |
get(ServiceContext serviceContext,
String param,
boolean defaultValue)
Returns the service context parameter value as a boolean.
|
static Date |
get(ServiceContext serviceContext,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the service context parameter value as a Date.
|
static double |
get(ServiceContext serviceContext,
String param,
double defaultValue)
Returns the service context parameter value as a double.
|
static float |
get(ServiceContext serviceContext,
String param,
float defaultValue)
Returns the service context parameter value as a float.
|
static int |
get(ServiceContext serviceContext,
String param,
int defaultValue)
Returns the service context parameter value as an integer.
|
static long |
get(ServiceContext serviceContext,
String param,
long defaultValue)
Returns the service context parameter value as a long.
|
static Number |
get(ServiceContext serviceContext,
String param,
Number defaultValue)
Returns the service context parameter value as a Number.
|
static short |
get(ServiceContext serviceContext,
String param,
short defaultValue)
Returns the service context parameter value as a short.
|
static String |
get(ServiceContext serviceContext,
String param,
String defaultValue)
Returns the service context parameter value as a String.
|
static boolean |
getBoolean(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a boolean.
|
static boolean |
getBoolean(javax.servlet.http.HttpServletRequest request,
String param,
boolean defaultValue)
Returns the request parameter value as a boolean.
|
static boolean |
getBoolean(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a boolean.
|
static boolean |
getBoolean(PortletRequest portletRequest,
String param,
boolean defaultValue)
Returns the portlet request parameter value as a boolean.
|
static boolean |
getBoolean(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a boolean.
|
static boolean |
getBoolean(ServiceContext serviceContext,
String param,
boolean defaultValue)
Returns the service context parameter value as a boolean.
|
static boolean[] |
getBooleanValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a boolean array.
|
static boolean[] |
getBooleanValues(javax.servlet.http.HttpServletRequest request,
String param,
boolean[] defaultValue)
Returns the request parameter value as a boolean array.
|
static boolean[] |
getBooleanValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a boolean array.
|
static boolean[] |
getBooleanValues(PortletRequest portletRequest,
String param,
boolean[] defaultValue)
Returns the portlet request parameter value as a boolean array.
|
static boolean[] |
getBooleanValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a boolean array.
|
static boolean[] |
getBooleanValues(ServiceContext serviceContext,
String param,
boolean[] defaultValue)
Returns the service context parameter value as a boolean array.
|
static Date |
getDate(javax.servlet.http.HttpServletRequest request,
String param,
DateFormat dateFormat)
Returns the request parameter value as a Date.
|
static Date |
getDate(javax.servlet.http.HttpServletRequest request,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the request parameter value as a Date.
|
static Date |
getDate(PortletRequest portletRequest,
String param,
DateFormat dateFormat)
Returns the portlet request parameter value as a Date.
|
static Date |
getDate(PortletRequest portletRequest,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the portlet request parameter value as a Date.
|
static Date |
getDate(ServiceContext serviceContext,
String param,
DateFormat dateFormat)
Returns the service context parameter value as a Date.
|
static Date |
getDate(ServiceContext serviceContext,
String param,
DateFormat dateFormat,
Date defaultValue)
Returns the service context parameter value as a Date.
|
static Date[] |
getDateValues(javax.servlet.http.HttpServletRequest request,
String param,
DateFormat dateFormat)
Returns the request parameter value as a Date array.
|
static Date[] |
getDateValues(javax.servlet.http.HttpServletRequest request,
String param,
DateFormat dateFormat,
Date[] defaultValue)
Returns the request parameter value as a Date array.
|
static Date[] |
getDateValues(PortletRequest portletRequest,
String param,
DateFormat dateFormat)
Returns the portlet request parameter value as a Date array.
|
static Date[] |
getDateValues(PortletRequest portletRequest,
String param,
DateFormat dateFormat,
Date[] defaultValue)
Returns the portlet request parameter value as a Date array.
|
static Date[] |
getDateValues(ServiceContext serviceContext,
String param,
DateFormat dateFormat)
Returns the service context parameter value as a Date array.
|
static Date[] |
getDateValues(ServiceContext serviceContext,
String param,
DateFormat dateFormat,
Date[] defaultValue)
Returns the service context parameter value as a Date array.
|
static double |
getDouble(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a double.
|
static double |
getDouble(javax.servlet.http.HttpServletRequest request,
String param,
double defaultValue)
Returns the request parameter value as a double.
|
static double |
getDouble(javax.servlet.http.HttpServletRequest request,
String param,
double defaultValue,
Locale locale)
Returns the request parameter value as a double.
|
static double |
getDouble(javax.servlet.http.HttpServletRequest request,
String param,
Locale locale)
Returns the request parameter value as a double.
|
static double |
getDouble(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a double.
|
static double |
getDouble(PortletRequest portletRequest,
String param,
double defaultValue)
Returns the portlet request parameter value as a double.
|
static double |
getDouble(PortletRequest portletRequest,
String param,
double defaultValue,
Locale locale)
Returns the portlet request parameter value as a double.
|
static double |
getDouble(PortletRequest portletRequest,
String param,
Locale locale)
Returns the portlet request parameter value as a double.
|
static double |
getDouble(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a double.
|
static double |
getDouble(ServiceContext serviceContext,
String param,
double defaultValue)
Returns the service context parameter value as a double.
|
static double[] |
getDoubleValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a double array.
|
static double[] |
getDoubleValues(javax.servlet.http.HttpServletRequest request,
String param,
double[] defaultValue)
Returns the request parameter value as a double array.
|
static double[] |
getDoubleValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a double array.
|
static double[] |
getDoubleValues(PortletRequest portletRequest,
String param,
double[] defaultValue)
Returns the portlet request parameter value as a double array.
|
static double[] |
getDoubleValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a double array.
|
static double[] |
getDoubleValues(ServiceContext serviceContext,
String param,
double[] defaultValue)
Returns the service context parameter value as a double array.
|
static float |
getFloat(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a float.
|
static float |
getFloat(javax.servlet.http.HttpServletRequest request,
String param,
float defaultValue)
Returns the request parameter value as a float.
|
static float |
getFloat(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a float.
|
static float |
getFloat(PortletRequest portletRequest,
String param,
float defaultValue)
Returns the portlet request parameter value as a float.
|
static float |
getFloat(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a float.
|
static float |
getFloat(ServiceContext serviceContext,
String param,
float defaultValue)
Returns the service context parameter value as a float.
|
static float[] |
getFloatValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a float array.
|
static float[] |
getFloatValues(javax.servlet.http.HttpServletRequest request,
String param,
float[] defaultValue)
Returns the request parameter value as a float array.
|
static float[] |
getFloatValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a float array.
|
static float[] |
getFloatValues(PortletRequest portletRequest,
String param,
float[] defaultValue)
Returns the portlet request parameter value as a float array.
|
static float[] |
getFloatValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a float array.
|
static float[] |
getFloatValues(ServiceContext serviceContext,
String param,
float[] defaultValue)
Returns the service context parameter value as a float array.
|
static int |
getInteger(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as an integer.
|
static int |
getInteger(javax.servlet.http.HttpServletRequest request,
String param,
int defaultValue)
Returns the request parameter value as an integer.
|
static int |
getInteger(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as an integer.
|
static int |
getInteger(PortletRequest portletRequest,
String param,
int defaultValue)
Returns the portlet request parameter value as an integer.
|
static int |
getInteger(ServiceContext serviceContext,
String param)
Returns the service context parameter value as an integer.
|
static int |
getInteger(ServiceContext serviceContext,
String param,
int defaultValue)
Returns the service context parameter value as an integer.
|
static int[] |
getIntegerValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as an integer array.
|
static int[] |
getIntegerValues(javax.servlet.http.HttpServletRequest request,
String param,
int[] defaultValue)
Returns the request parameter value as an integer array.
|
static int[] |
getIntegerValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as an integer array.
|
static int[] |
getIntegerValues(PortletRequest portletRequest,
String param,
int[] defaultValue)
Returns the portlet request parameter value as an integer array.
|
static int[] |
getIntegerValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as an integer array.
|
static int[] |
getIntegerValues(ServiceContext serviceContext,
String param,
int[] defaultValue)
Returns the service context parameter value as an integer array.
|
static long |
getLong(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a long.
|
static long |
getLong(javax.servlet.http.HttpServletRequest request,
String param,
long defaultValue)
Returns the request parameter value as a long.
|
static long |
getLong(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a long.
|
static long |
getLong(PortletRequest portletRequest,
String param,
long defaultValue)
Returns the portlet request parameter value as a long.
|
static long |
getLong(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a long.
|
static long |
getLong(ServiceContext serviceContext,
String param,
long defaultValue)
Returns the service context parameter value as a long.
|
static long[] |
getLongValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a long array.
|
static long[] |
getLongValues(javax.servlet.http.HttpServletRequest request,
String param,
long[] defaultValue)
Returns the request parameter value as a long array.
|
static long[] |
getLongValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a long array.
|
static long[] |
getLongValues(PortletRequest portletRequest,
String param,
long[] defaultValue)
Returns the portlet request parameter value as a long array.
|
static long[] |
getLongValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a long array.
|
static long[] |
getLongValues(ServiceContext serviceContext,
String param,
long[] defaultValue)
Returns the service context parameter value as a long array.
|
static Number |
getNumber(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a Number.
|
static Number |
getNumber(javax.servlet.http.HttpServletRequest request,
String param,
Number defaultValue)
Returns the request parameter value as a Number.
|
static Number |
getNumber(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a Number.
|
static Number |
getNumber(PortletRequest portletRequest,
String param,
Number defaultValue)
Returns the portlet request parameter value as a Number.
|
static Number |
getNumber(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a Number.
|
static Number |
getNumber(ServiceContext serviceContext,
String param,
Number defaultValue)
Returns the service context parameter value as a Number.
|
static Number[] |
getNumberValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a Number array.
|
static Number[] |
getNumberValues(javax.servlet.http.HttpServletRequest request,
String param,
Number[] defaultValue)
Returns the request parameter value as a Number array.
|
static Number[] |
getNumberValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a Number array.
|
static Number[] |
getNumberValues(PortletRequest portletRequest,
String param,
Number[] defaultValue)
Returns the portlet request parameter value as a Number array.
|
static Number[] |
getNumberValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a Number array.
|
static Number[] |
getNumberValues(ServiceContext serviceContext,
String param,
Number[] defaultValue)
Returns the service context parameter value as a Number array.
|
static String[] |
getParameterValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a String array.
|
static String[] |
getParameterValues(javax.servlet.http.HttpServletRequest request,
String param,
String[] defaultValue)
Returns the request parameter value as a String array.
|
static String[] |
getParameterValues(javax.servlet.http.HttpServletRequest request,
String param,
String[] defaultValue,
boolean split)
Returns the request parameter value as a String array.
|
static String[] |
getParameterValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a String array.
|
static String[] |
getParameterValues(PortletRequest portletRequest,
String param,
String[] defaultValue)
Returns the portlet request parameter value as a String array.
|
static String[] |
getParameterValues(PortletRequest portletRequest,
String param,
String[] defaultValue,
boolean split)
Returns the portlet request parameter value as a String array.
|
static short |
getShort(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a short.
|
static short |
getShort(javax.servlet.http.HttpServletRequest request,
String param,
short defaultValue)
Returns the request parameter value as a short.
|
static short |
getShort(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a short.
|
static short |
getShort(PortletRequest portletRequest,
String param,
short defaultValue)
Returns the portlet request parameter value as a short.
|
static short |
getShort(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a short.
|
static short |
getShort(ServiceContext serviceContext,
String param,
short defaultValue)
Returns the service context parameter value as a short.
|
static short[] |
getShortValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a short array.
|
static short[] |
getShortValues(javax.servlet.http.HttpServletRequest request,
String param,
short[] defaultValue)
Returns the request parameter value as a short array.
|
static short[] |
getShortValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a short array.
|
static short[] |
getShortValues(PortletRequest portletRequest,
String param,
short[] defaultValue)
Returns the portlet request parameter value as a short array.
|
static short[] |
getShortValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a short array.
|
static short[] |
getShortValues(ServiceContext serviceContext,
String param,
short[] defaultValue)
Returns the service context parameter value as a short array.
|
static String |
getString(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a String.
|
static String |
getString(javax.servlet.http.HttpServletRequest request,
String param,
String defaultValue)
Returns the request parameter value as a String.
|
static String |
getString(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a String.
|
static String |
getString(PortletRequest portletRequest,
String param,
String defaultValue)
Returns the portlet request parameter value as a String.
|
static String |
getString(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a String.
|
static String |
getString(ServiceContext serviceContext,
String param,
String defaultValue)
Returns the service context parameter value as a String.
|
static String[] |
getStringValues(javax.servlet.http.HttpServletRequest request,
String param)
Returns the request parameter value as a String array.
|
static String[] |
getStringValues(javax.servlet.http.HttpServletRequest request,
String param,
String[] defaultValue)
Returns the request parameter value as a String array.
|
static String[] |
getStringValues(PortletRequest portletRequest,
String param)
Returns the portlet request parameter value as a String array.
|
static String[] |
getStringValues(PortletRequest portletRequest,
String param,
String[] defaultValue)
Returns the portlet request parameter value as a String array.
|
static String[] |
getStringValues(ServiceContext serviceContext,
String param)
Returns the service context parameter value as a String array.
|
static String[] |
getStringValues(ServiceContext serviceContext,
String param,
String[] defaultValue)
Returns the service context parameter value as a String array.
|
static void |
print(javax.servlet.http.HttpServletRequest request)
Prints all the request parameters as standard output.
|
static void |
print(PortletRequest portletRequest)
Prints all the portlet request parameters as standard output.
|
static void |
print(ServiceContext serviceContext)
Prints all the service context parameters as standard output.
|
public static boolean get(javax.servlet.http.HttpServletRequest request, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Date get(javax.servlet.http.HttpServletRequest request, String param, DateFormat dateFormat, Date defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static double get(javax.servlet.http.HttpServletRequest request, String param, double defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float get(javax.servlet.http.HttpServletRequest request, String param, float defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int get(javax.servlet.http.HttpServletRequest request, String param, int defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long get(javax.servlet.http.HttpServletRequest request, String param, long defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number get(javax.servlet.http.HttpServletRequest request, String param, Number defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short get(javax.servlet.http.HttpServletRequest request, String param, short defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String get(javax.servlet.http.HttpServletRequest request, String param, String defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean get(PortletRequest portletRequest, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Date get(PortletRequest portletRequest, String param, DateFormat dateFormat, Date defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static double get(PortletRequest portletRequest, String param, double defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float get(PortletRequest portletRequest, String param, float defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int get(PortletRequest portletRequest, String param, int defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long get(PortletRequest portletRequest, String param, long defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number get(PortletRequest portletRequest, String param, Number defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short get(PortletRequest portletRequest, String param, short defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String get(PortletRequest portletRequest, String param, String defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean get(ServiceContext serviceContext, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Date get(ServiceContext serviceContext, String param, DateFormat dateFormat, Date defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static double get(ServiceContext serviceContext, String param, double defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float get(ServiceContext serviceContext, String param, float defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int get(ServiceContext serviceContext, String param, int defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long get(ServiceContext serviceContext, String param, long defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number get(ServiceContext serviceContext, String param, Number defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short get(ServiceContext serviceContext, String param, short defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String get(ServiceContext serviceContext, String param, String defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean getBoolean(javax.servlet.http.HttpServletRequest request, String param)
false
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static boolean getBoolean(javax.servlet.http.HttpServletRequest request, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean getBoolean(PortletRequest portletRequest, String param)
false
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static boolean getBoolean(PortletRequest portletRequest, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean getBoolean(ServiceContext serviceContext, String param)
false
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static boolean getBoolean(ServiceContext serviceContext, String param, boolean defaultValue)
If the value is not convertible to a boolean, false
is
returned.
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean[] getBooleanValues(javax.servlet.http.HttpServletRequest request, String param)
false
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static boolean[] getBooleanValues(javax.servlet.http.HttpServletRequest request, String param, boolean[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean[] getBooleanValues(PortletRequest portletRequest, String param)
false
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static boolean[] getBooleanValues(PortletRequest portletRequest, String param, boolean[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static boolean[] getBooleanValues(ServiceContext serviceContext, String param)
false
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static boolean[] getBooleanValues(ServiceContext serviceContext, String param, boolean[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Date getDate(javax.servlet.http.HttpServletRequest request, String param, DateFormat dateFormat)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date getDate(javax.servlet.http.HttpServletRequest request, String param, DateFormat dateFormat, Date defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static Date getDate(PortletRequest portletRequest, String param, DateFormat dateFormat)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date getDate(PortletRequest portletRequest, String param, DateFormat dateFormat, Date defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static Date getDate(ServiceContext serviceContext, String param, DateFormat dateFormat)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date getDate(ServiceContext serviceContext, String param, DateFormat dateFormat, Date defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static Date[] getDateValues(javax.servlet.http.HttpServletRequest request, String param, DateFormat dateFormat)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date[] getDateValues(javax.servlet.http.HttpServletRequest request, String param, DateFormat dateFormat, Date[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static Date[] getDateValues(PortletRequest portletRequest, String param, DateFormat dateFormat)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date[] getDateValues(PortletRequest portletRequest, String param, DateFormat dateFormat, Date[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static Date[] getDateValues(ServiceContext serviceContext, String param, DateFormat dateFormat)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datepublic static Date[] getDateValues(ServiceContext serviceContext, String param, DateFormat dateFormat, Date[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdateFormat
- the format used to parse the datedefaultValue
- a default valuepublic static double getDouble(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static double getDouble(javax.servlet.http.HttpServletRequest request, String param, double defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static double getDouble(javax.servlet.http.HttpServletRequest request, String param, double defaultValue, Locale locale)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuelocale
- the locale used to parse the double valuepublic static double getDouble(javax.servlet.http.HttpServletRequest request, String param, Locale locale)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterlocale
- the locale used to parse the double valuepublic static double getDouble(PortletRequest portletRequest, String param)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static double getDouble(PortletRequest portletRequest, String param, double defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static double getDouble(PortletRequest portletRequest, String param, double defaultValue, Locale locale)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuelocale
- the locale used to parse the double valuepublic static double getDouble(PortletRequest portletRequest, String param, Locale locale)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterlocale
- the locale used to parse the double valuepublic static double getDouble(ServiceContext serviceContext, String param)
0
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static double getDouble(ServiceContext serviceContext, String param, double defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static double[] getDoubleValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static double[] getDoubleValues(javax.servlet.http.HttpServletRequest request, String param, double[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static double[] getDoubleValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static double[] getDoubleValues(PortletRequest portletRequest, String param, double[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static double[] getDoubleValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static double[] getDoubleValues(ServiceContext serviceContext, String param, double[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float getFloat(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static float getFloat(javax.servlet.http.HttpServletRequest request, String param, float defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float getFloat(PortletRequest portletRequest, String param)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static float getFloat(PortletRequest portletRequest, String param, float defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float getFloat(ServiceContext serviceContext, String param)
0
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static float getFloat(ServiceContext serviceContext, String param, float defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float[] getFloatValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static float[] getFloatValues(javax.servlet.http.HttpServletRequest request, String param, float[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float[] getFloatValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static float[] getFloatValues(PortletRequest portletRequest, String param, float[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static float[] getFloatValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static float[] getFloatValues(ServiceContext serviceContext, String param, float[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int getInteger(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static int getInteger(javax.servlet.http.HttpServletRequest request, String param, int defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int getInteger(PortletRequest portletRequest, String param)
0
is
returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static int getInteger(PortletRequest portletRequest, String param, int defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int getInteger(ServiceContext serviceContext, String param)
0
is
returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static int getInteger(ServiceContext serviceContext, String param, int defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int[] getIntegerValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static int[] getIntegerValues(javax.servlet.http.HttpServletRequest request, String param, int[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int[] getIntegerValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static int[] getIntegerValues(PortletRequest portletRequest, String param, int[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static int[] getIntegerValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static int[] getIntegerValues(ServiceContext serviceContext, String param, int[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long getLong(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static long getLong(javax.servlet.http.HttpServletRequest request, String param, long defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long getLong(PortletRequest portletRequest, String param)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static long getLong(PortletRequest portletRequest, String param, long defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long getLong(ServiceContext serviceContext, String param)
0
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static long getLong(ServiceContext serviceContext, String param, long defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long[] getLongValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static long[] getLongValues(javax.servlet.http.HttpServletRequest request, String param, long[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long[] getLongValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static long[] getLongValues(PortletRequest portletRequest, String param, long[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static long[] getLongValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static long[] getLongValues(ServiceContext serviceContext, String param, long[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number getNumber(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static Number getNumber(javax.servlet.http.HttpServletRequest request, String param, Number defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number getNumber(PortletRequest portletRequest, String param)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static Number getNumber(PortletRequest portletRequest, String param, Number defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number getNumber(ServiceContext serviceContext, String param)
0
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static Number getNumber(ServiceContext serviceContext, String param, Number defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number[] getNumberValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static Number[] getNumberValues(javax.servlet.http.HttpServletRequest request, String param, Number[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number[] getNumberValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static Number[] getNumberValues(PortletRequest portletRequest, String param, Number[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static Number[] getNumberValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static Number[] getNumberValues(ServiceContext serviceContext, String param, Number[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getParameterValues(javax.servlet.http.HttpServletRequest request, String param)
request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static String[] getParameterValues(javax.servlet.http.HttpServletRequest request, String param, String[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getParameterValues(javax.servlet.http.HttpServletRequest request, String param, String[] defaultValue, boolean split)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuesplit
- whether to split the single parameter value using comma
separators to get multiple valuespublic static String[] getParameterValues(PortletRequest portletRequest, String param)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static String[] getParameterValues(PortletRequest portletRequest, String param, String[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getParameterValues(PortletRequest portletRequest, String param, String[] defaultValue, boolean split)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuesplit
- whether to split the single parameter value using comma
separators to get multiple valuespublic static short getShort(javax.servlet.http.HttpServletRequest request, String param)
0
is returned.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static short getShort(javax.servlet.http.HttpServletRequest request, String param, short defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short getShort(PortletRequest portletRequest, String param)
0
is returned.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static short getShort(PortletRequest portletRequest, String param, short defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short getShort(ServiceContext serviceContext, String param)
0
is returned.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static short getShort(ServiceContext serviceContext, String param, short defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short[] getShortValues(javax.servlet.http.HttpServletRequest request, String param)
0
.request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static short[] getShortValues(javax.servlet.http.HttpServletRequest request, String param, short[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short[] getShortValues(PortletRequest portletRequest, String param)
0
.portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static short[] getShortValues(PortletRequest portletRequest, String param, short[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static short[] getShortValues(ServiceContext serviceContext, String param)
0
.serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static short[] getShortValues(ServiceContext serviceContext, String param, short[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String getString(javax.servlet.http.HttpServletRequest request, String param)
request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static String getString(javax.servlet.http.HttpServletRequest request, String param, String defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String getString(PortletRequest portletRequest, String param)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static String getString(PortletRequest portletRequest, String param, String defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String getString(ServiceContext serviceContext, String param)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static String getString(ServiceContext serviceContext, String param, String defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getStringValues(javax.servlet.http.HttpServletRequest request, String param)
request
- the servlet request from which to read the parameterparam
- the name of the parameterpublic static String[] getStringValues(javax.servlet.http.HttpServletRequest request, String param, String[] defaultValue)
request
- the servlet request from which to read the parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getStringValues(PortletRequest portletRequest, String param)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterpublic static String[] getStringValues(PortletRequest portletRequest, String param, String[] defaultValue)
portletRequest
- the portlet request from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static String[] getStringValues(ServiceContext serviceContext, String param)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterpublic static String[] getStringValues(ServiceContext serviceContext, String param, String[] defaultValue)
serviceContext
- the service context from which to read the
parameterparam
- the name of the parameterdefaultValue
- a default valuepublic static void print(javax.servlet.http.HttpServletRequest request)
request
- the servlet request from which to read the parameterspublic static void print(PortletRequest portletRequest)
portletRequest
- the portlet request from which to read the
parameterspublic static void print(ServiceContext serviceContext)
serviceContext
- the service context from which to read the
parameters