public class RhnHelper
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CONFIRM_FORWARDThe key for the confirm struts forward | 
| static java.lang.String | DEFAULT_EMPTY_SELECTION_KEYThe key for the default empty selection error | 
| static java.lang.String | DEFAULT_FORWARDThe key for the default struts forward | 
| static java.lang.String | TARGET_ADDRESS_BILLINGThe key used on RHN Requests to store the Billing Address | 
| static java.lang.String | TARGET_ADDRESS_MARKETINGThe key used on RHN Requests to store the Marketing Address | 
| static java.lang.String | TARGET_ADDRESS_SHIPPINGThe key used on RHN Requests to store the Shipping Address | 
| static java.lang.String | TARGET_USERThe key used on RHN Requests to store the User | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | getParameterWithSpecialCharacters(javax.servlet.http.HttpServletRequest request,
                                 java.lang.String name)If you need to a request parameter that may contain +++
 or other special characters that fails to fetch properly using
 request.getParameter() you can use this method. | 
| static java.lang.String | getTextAreaValue(org.apache.struts.action.DynaActionForm form,
                java.lang.String name)Use this for every textarea that we use in our UI. | 
| static void | handleEmptySelection(javax.servlet.http.HttpServletRequest request)Method to add the default empty selection error message
 to  the request | 
| static void | handleEmptySelection(javax.servlet.http.HttpServletRequest request,
                    java.lang.String messageKey)Method to add the empty selection error message
 to  the request | 
| static boolean | pathNeedsSecurity(java.lang.String[] nosecurityPaths,
                 java.lang.String path)If the path doesn't require authentication, return false. | 
public static final java.lang.String TARGET_USER
public static final java.lang.String TARGET_ADDRESS_MARKETING
public static final java.lang.String TARGET_ADDRESS_BILLING
public static final java.lang.String TARGET_ADDRESS_SHIPPING
public static final java.lang.String DEFAULT_FORWARD
public static final java.lang.String CONFIRM_FORWARD
public static final java.lang.String DEFAULT_EMPTY_SELECTION_KEY
public static boolean pathNeedsSecurity(java.lang.String[] nosecurityPaths,
                                        java.lang.String path)
nosecurityPaths - array of String paths, "/foo",
 "/bar/baz/test.jsp", "/somepath/foo.do"path - to checkpublic static void handleEmptySelection(javax.servlet.http.HttpServletRequest request)
request - the servlet requestpublic static java.lang.String getTextAreaValue(org.apache.struts.action.DynaActionForm form,
                                                java.lang.String name)
form - to fetch fromname - of value in formpublic static void handleEmptySelection(javax.servlet.http.HttpServletRequest request,
                                        java.lang.String messageKey)
request - the servlet requestmessageKey - the key associated to
                      the empty selection errorpublic static java.lang.String getParameterWithSpecialCharacters(javax.servlet.http.HttpServletRequest request,
                                                                 java.lang.String name)
request - to fetch fromname - of parameter to fetch