@Deprecated @Override public String getParameter(String name) { return ((PortletRequest)wrapped).getParameter(name); }
/** * Returns the portlet request parameter value as a short. If the parameter * is missing or not convertible to a short, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a short */ public static short getShort(PortletRequest portletRequest, String param) { return GetterUtil.getShort(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as a long. If the parameter * is missing or not convertible to a long, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a long */ public static long getLong(PortletRequest portletRequest, String param) { return GetterUtil.getLong(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as a float. If the parameter * is missing or not convertible to a float, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a float */ public static float getFloat(PortletRequest portletRequest, String param) { return GetterUtil.getFloat(portletRequest.getParameter(param)); }
private void _setParameter(String name) { String value = _portletRequest.getParameter(name); if (value != null) { _iteratorURL.setParameter(name, value); } }
/** * Returns the portlet request parameter value as a Number. If the parameter * is missing or not convertible to a Number, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a Number */ public static Number getNumber( PortletRequest portletRequest, String param) { return GetterUtil.getNumber(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as an integer. If the * parameter is missing or not convertible to an integer, <code>0</code> is * returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as an integer */ public static int getInteger(PortletRequest portletRequest, String param) { return GetterUtil.getInteger(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as a double. If the parameter * is missing or not convertible to a double, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a double */ public static double getDouble( PortletRequest portletRequest, String param) { return GetterUtil.getDouble(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as a double. If the parameter * is missing or not convertible to a double, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a double */ public static double get( PortletRequest portletRequest, String param, double defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a short. If the parameter * is missing or not convertible to a short, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a short */ public static short get( PortletRequest portletRequest, String param, short defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a double. If the parameter * is missing or not convertible to a double, <code>0</code> is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param locale the locale used to parse the double value * @return the portlet request parameter value as a double */ public static double getDouble( PortletRequest portletRequest, String param, Locale locale) { return GetterUtil.getDouble(portletRequest.getParameter(param), locale); }
/** * Returns the portlet request parameter value as a float. If the parameter * is missing or not convertible to a float, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a float */ public static float get( PortletRequest portletRequest, String param, float defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a Number. If the parameter * is missing or not convertible to a Number, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a Number */ public static Number get( PortletRequest portletRequest, String param, Number defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a boolean. If the * parameter is missing or not convertible to a boolean, <code>false</code> * is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a boolean */ public static boolean getBoolean( PortletRequest portletRequest, String param) { return GetterUtil.getBoolean(portletRequest.getParameter(param)); }
/** * Returns the portlet request parameter value as a long. If the parameter * is missing or not convertible to a long, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as a long */ public static long get( PortletRequest portletRequest, String param, long defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a Date. If the parameter * is missing or not convertible to a Date, the current date is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param dateFormat the format used to parse the date * @return the portlet request parameter value as a Date */ public static Date getDate( PortletRequest portletRequest, String param, DateFormat dateFormat) { return GetterUtil.getDate( portletRequest.getParameter(param), dateFormat); }
/** * Returns the portlet request parameter value as an integer. If the * parameter is missing or not convertible to an integer, the default value * is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @return the portlet request parameter value as an integer */ public static int get( PortletRequest portletRequest, String param, int defaultValue) { return GetterUtil.get(portletRequest.getParameter(param), defaultValue); }
/** * Returns the portlet request parameter value as a double. If the parameter * is missing or not convertible to a double, the default value is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @param defaultValue a default value * @param locale the locale used to parse the double value * @return the portlet request parameter value as a double */ public static double getDouble( PortletRequest portletRequest, String param, double defaultValue, Locale locale) { return GetterUtil.get( portletRequest.getParameter(param), defaultValue, locale); }
protected String getPath( PortletRequest portletRequest, PortletResponse portletResponse) { String mvcPath = portletRequest.getParameter("mvcPath"); if (mvcPath == null) { mvcPath = (String)portletRequest.getAttribute( getMVCPathAttributeName(portletResponse.getNamespace())); } // Check deprecated parameter if (mvcPath == null) { mvcPath = portletRequest.getParameter("jspPage"); } return mvcPath; }
/** * Returns the portlet request parameter value as a String. If the parameter * is missing or not convertible to a String, a blank string is returned. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a String */ public static String getString( PortletRequest portletRequest, String param) { return _normalize( GetterUtil.getString(portletRequest.getParameter(param))); }