|
Liferay 7.0-ga1 portal-kernel | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.util.ParamUtil
public class ParamUtil
Provides utility methods for reading request parameters.
| Constructor Summary | |
|---|---|
ParamUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParamUtil()
| Method Detail |
|---|
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 value
public 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 datedefaultValue - a default value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 datedefaultValue - a default value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 datedefaultValue - a default value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 value
public 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 parameter
public 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 value
public static boolean getBoolean(PortletRequest portletRequest,
String param)
false
is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static boolean getBoolean(ServiceContext serviceContext,
String param)
false
is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static boolean[] getBooleanValues(PortletRequest portletRequest,
String param)
false.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static boolean[] getBooleanValues(ServiceContext serviceContext,
String param)
false.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 date
public 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 value
public 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 date
public 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 value
public 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 date
public 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 value
public 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 date
public 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 value
public 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 date
public 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 value
public 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 date
public 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 value
public 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 parameter
public 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 value
public 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 value
public 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 value
public static double getDouble(PortletRequest portletRequest,
String param)
0 is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 value
public 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 value
public static double getDouble(ServiceContext serviceContext,
String param)
0 is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static double[] getDoubleValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static double[] getDoubleValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static float getFloat(PortletRequest portletRequest,
String param)
0 is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static float getFloat(ServiceContext serviceContext,
String param)
0 is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static float[] getFloatValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static float[] getFloatValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static int getInteger(PortletRequest portletRequest,
String param)
0 is
returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static int getInteger(ServiceContext serviceContext,
String param)
0 is
returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static int[] getIntegerValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static int[] getIntegerValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static long getLong(PortletRequest portletRequest,
String param)
0 is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static long getLong(ServiceContext serviceContext,
String param)
0 is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static long[] getLongValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static long[] getLongValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static Number getNumber(PortletRequest portletRequest,
String param)
0 is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static Number getNumber(ServiceContext serviceContext,
String param)
0 is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static Number[] getNumberValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static Number[] getNumberValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public static String[] getParameterValues(javax.servlet.http.HttpServletRequest request,
String param)
request - the servlet request from which to read the parameterparam - the name of the parameter
public 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 value
public 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 values
public static String[] getParameterValues(PortletRequest portletRequest,
String param)
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 values
public 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 parameter
public 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 value
public static short getShort(PortletRequest portletRequest,
String param)
0 is returned.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static short getShort(ServiceContext serviceContext,
String param)
0 is returned.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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 parameter
public 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 value
public static short[] getShortValues(PortletRequest portletRequest,
String param)
0.
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static short[] getShortValues(ServiceContext serviceContext,
String param)
0.
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public static String getString(javax.servlet.http.HttpServletRequest request,
String param)
request - the servlet request from which to read the parameterparam - the name of the parameter
public 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 value
public static String getString(PortletRequest portletRequest,
String param)
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static String getString(ServiceContext serviceContext,
String param)
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public static String[] getStringValues(javax.servlet.http.HttpServletRequest request,
String param)
request - the servlet request from which to read the parameterparam - the name of the parameter
public 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 value
public static String[] getStringValues(PortletRequest portletRequest,
String param)
portletRequest - the portlet request from which to read the
parameterparam - the name of the parameter
public 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 value
public static String[] getStringValues(ServiceContext serviceContext,
String param)
serviceContext - the service context from which to read the
parameterparam - the name of the parameter
public 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 value
public 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
|
Liferay 7.0-ga1 portal-kernel | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||