org.rhq.enterprise.gui.legacy.util
Class RequestUtils

java.lang.Object
  extended by org.rhq.enterprise.gui.legacy.util.RequestUtils

Deprecated. replaced by WebUtility

@Deprecated
public class RequestUtils
extends Object

Utilities class that provides many convenience methods for logging, request parameter processing, etc.


Constructor Summary
RequestUtils()
          Deprecated.  
 
Method Summary
static void bustaCache(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Deprecated.  
static void bustaCache(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean expire)
          Deprecated. When you really really want to defeat a browser's cache, expire the content and set the no-cache header
static String dumpRequestAttributesToString(javax.servlet.ServletRequest request)
          Deprecated.  
static void dumpRequestAttributesToString(javax.servlet.ServletRequest request, OutputStream out)
          Deprecated.  
static void dumpRequestAttributesToString(javax.servlet.ServletRequest request, PrintWriter out)
          Deprecated.  
static void dumpRequestParams(javax.servlet.ServletRequest request, org.apache.commons.logging.Log log, boolean html)
          Deprecated.  
static void dumpRequestParams(javax.servlet.ServletRequest request, OutputStream out, boolean html)
          Deprecated.  
static void dumpRequestParams(javax.servlet.ServletRequest request, PrintWriter out, boolean html)
          Deprecated. A development aid.
static String dumpRequestParamsToString(javax.servlet.ServletRequest request, boolean html)
          Deprecated.  
static Integer getAutogroupResourceTypeId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the AUTOGROUP_TYPE_ID_PARAM parameter from the HTTP request.
static org.rhq.core.domain.resource.group.GroupCategory getGroupCategory(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
static Integer getGroupId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the RESOURCE_PARAM parameter from the HTTP request.
static Integer getIntParameter(javax.servlet.http.HttpServletRequest request, String name)
          Deprecated. Fetchs the int value of the parameter from the request
static Integer getIntParameter(javax.servlet.http.HttpServletRequest request, String name, Integer def)
          Deprecated. Fetchs the int value of the parameter from the request
static Integer getMetricId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the METRIC_BASELINE_PARAM parameter from the HTTP request.
static String getMode(javax.servlet.http.HttpServletRequest request)
          Deprecated. Extract the subcontroller mode from the Constants.MODE_PARAM parameter of the HTTP request.
static int getPageNum(javax.servlet.http.HttpServletRequest request, String param)
          Deprecated. Retrieve the int value of the Constants.PAGENUM_PARAM request parameter, or Constants.PAGENUM_DEFAULT if the parameter was not found or not specified as an integer.
static int getPageSize(javax.servlet.http.HttpServletRequest request, String param)
          Deprecated. Retrieve the int value of the Constants.PAGESIZE_PARAM request parameter, or Constants.PAGESIZE_DEFAULT if the parameter was not found or not specified as an integer.
static org.rhq.core.domain.resource.Resource getRes(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
static org.rhq.core.domain.resource.Resource getResource(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Resource value of the RESOURCE_ATTR parameter from the HTTP request.
static org.rhq.core.domain.resource.group.ResourceGroup getResourceGroupIfExists(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
static Integer getResourceId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the RESOURCE_ID_PARAM parameter from the HTTP request.
static Integer[] getResourceIds(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer values of the RESOURCE_ID_PARAM parameter from the HTTP request.
static org.rhq.core.domain.resource.ResourceType getResourceType(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
static Integer getResourceTypeId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the RESOURCE_TYPE_ID_PARAM parameter from the HTTP request.
static Integer getRoleId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the ROLE_PARAM parameter from the HTTP request.
static Integer getScheduleId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the SCHEDULE_PARAM parameter from the HTTP request.
static Integer getSessionId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Extract the BizApp session id as an Integer from the web session.
static String getStringParameter(javax.servlet.http.HttpServletRequest request, String name)
          Deprecated. Fetches the String value of the parameter from the request
static String getStringParameter(javax.servlet.http.HttpServletRequest request, String name, String def)
          Deprecated. Fetchs the String value of the parameter from the request
static org.rhq.core.domain.auth.Subject getSubject(javax.servlet.http.HttpServletRequest request)
          Deprecated. Use WebUtility.getSubject(HttpServletRequest) instead
static String getUrl(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the String value of the URL_ATTR parameter from the HTTP request.
static Integer getUserId(javax.servlet.http.HttpServletRequest request)
          Deprecated. Retrieve the Integer value of the USER_PARAM parameter from the HTTP request.
static WebUser getWebUser(javax.servlet.http.HttpServletRequest request)
          Deprecated. Return the WebUser representing the person currently interacting with the product.
static boolean isAddClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "add" button was clicked on the previous page.
static boolean isCancelClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "cancel" button was clicked on the previous page.
static boolean isEditClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "edit" button was clicked on the previous page.
static boolean isNewClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "new" button was clicked on the previous page.
static boolean isOkAssignClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "okassign" button was clicked on the previous page.
static boolean isOkClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "ok" button was clicked on the previous page.
static boolean isRemoveClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if a "remove" button was clicked on the previous page.
static boolean isResetClicked(javax.servlet.http.HttpServletRequest request)
          Deprecated. Examine the request to see if an "reset" button was clicked on the previous page.
static String message(javax.servlet.http.HttpServletRequest request, String key)
          Deprecated. Get an i18n message from the application resource bundle.
static String message(javax.servlet.http.HttpServletRequest request, String key, Object[] args)
          Deprecated. Get an i18n message from the application resource bundle.
static String message(javax.servlet.http.HttpServletRequest request, String bundle, String locale, String key)
          Deprecated. Get an i18n message from the application resource bundle.
static String message(javax.servlet.http.HttpServletRequest request, String bundle, String locale, String key, Object[] args)
          Deprecated. Get an i18n message from the application resource bundle.
static boolean parameterExists(javax.servlet.http.HttpServletRequest request, String name)
          Deprecated. Verify if a parameter exists in the request
static void propogateParam(javax.servlet.http.HttpServletRequest request, Map params, String param)
          Deprecated. Propogate a request parameter.
static void setConfirmation(javax.servlet.http.HttpServletRequest request, String key)
          Deprecated. Set a confirmation message upon completion of a user action.
static void setConfirmation(javax.servlet.http.HttpServletRequest request, String key, Object value0)
          Deprecated. Set a confirmation message with a replacement value upon completion of a user action.
static void setError(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMessage msg, String property)
          Deprecated.  
static void setError(javax.servlet.http.HttpServletRequest request, String key)
          Deprecated. Set an error message when a user action fails with a user-level error.
static void setError(javax.servlet.http.HttpServletRequest request, String key, Object value0)
          Deprecated. Set an error message with a replacement value when a user action fails with a user-level error.
static void setError(javax.servlet.http.HttpServletRequest request, String key, Object value0, String property)
          Deprecated. Set an error message with a replacement value when a user action fails with a user-level error.
static void setError(javax.servlet.http.HttpServletRequest request, String key, String property)
          Deprecated. Set an error message when a user action fails with a user-level error.
static void setErrorObject(javax.servlet.http.HttpServletRequest request, String key, String object)
          Deprecated. Set an error message when a user action fails with a user-level error.
static void setErrors(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionErrors errs)
          Deprecated. sets an ActionErrors object into the request object.
static void setErrorWithNullCheck(javax.servlet.http.HttpServletRequest request, Exception e, String nullMsg, String regularMsg)
          Deprecated.  
static void setGroupCategory(javax.servlet.http.HttpServletRequest request, org.rhq.core.domain.resource.group.GroupCategory category)
          Deprecated.  
static void setRes(javax.servlet.http.HttpServletRequest request, org.rhq.core.domain.resource.Resource resource)
          Deprecated.  
static void setResource(javax.servlet.http.HttpServletRequest request, org.rhq.core.domain.resource.Resource resource)
          Deprecated. Set the Resource value in the RESOURCE_ATTR parameter of the HTTP request.
static void setResourceGroup(javax.servlet.http.HttpServletRequest request, org.rhq.core.domain.resource.group.ResourceGroup resourceGroup)
          Deprecated.  
static void setResourceType(javax.servlet.http.HttpServletRequest request, org.rhq.core.domain.resource.ResourceType resourceType)
          Deprecated. Set the Resource value in the RESOURCE_ATTR parameter of the HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestUtils

public RequestUtils()
Deprecated. 
Method Detail

parameterExists

public static boolean parameterExists(javax.servlet.http.HttpServletRequest request,
                                      String name)
Deprecated. 
Verify if a parameter exists in the request

Parameters:
name - The name of the parameter in the request
Returns:
Boolean if the parameter exists in the request

getStringParameter

public static String getStringParameter(javax.servlet.http.HttpServletRequest request,
                                        String name)
                                 throws ParameterNotFoundException
Deprecated. 
Fetches the String value of the parameter from the request

Parameters:
name - The name of the parameter in the request
Returns:
The value of the parameter passed into the request
Throws:
ParameterNotFoundException - If the parameter name is not found in the request

getStringParameter

public static String getStringParameter(javax.servlet.http.HttpServletRequest request,
                                        String name,
                                        String def)
Deprecated. 
Fetchs the String value of the parameter from the request

Parameters:
name - The name of the parameter in the request
def - The default value to return if the parameter is not found
Returns:
The value of the parameter passed into the request

getIntParameter

public static Integer getIntParameter(javax.servlet.http.HttpServletRequest request,
                                      String name)
                               throws ParameterNotFoundException,
                                      NumberFormatException
Deprecated. 
Fetchs the int value of the parameter from the request

Parameters:
name - The name of the parameter in the request
Returns:
The value of the parameter passed into the request
Throws:
ParameterNotFoundException - If the parameter name is not found in the request
NumberFormatException - If the parameter value is not a valid integer

getIntParameter

public static Integer getIntParameter(javax.servlet.http.HttpServletRequest request,
                                      String name,
                                      Integer def)
Deprecated. 
Fetchs the int value of the parameter from the request

Parameters:
name - The name of the parameter in the request
def - The default value to return if the parameter is not found
Returns:
The value of the parameter passed into the request

getWebUser

public static WebUser getWebUser(javax.servlet.http.HttpServletRequest request)
                          throws javax.servlet.ServletException
Deprecated. 
Return the WebUser representing the person currently interacting with the product.

Throws:
javax.servlet.ServletException - if the session cannot be accessed

getSubject

@Deprecated
public static org.rhq.core.domain.auth.Subject getSubject(javax.servlet.http.HttpServletRequest request)
                                                   throws javax.servlet.ServletException
Deprecated. Use WebUtility.getSubject(HttpServletRequest) instead

Return the Subject representing the person currently interacting with the product.

Throws:
javax.servlet.ServletException - if the session cannot be accessed

getSessionId

public static Integer getSessionId(javax.servlet.http.HttpServletRequest request)
                            throws javax.servlet.ServletException
Deprecated. 
Extract the BizApp session id as an Integer from the web session.

Throws:
javax.servlet.ServletException - if the session cannot be accessed

getMode

public static String getMode(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Extract the subcontroller mode from the Constants.MODE_PARAM parameter of the HTTP request.


getRoleId

public static Integer getRoleId(javax.servlet.http.HttpServletRequest request)
                         throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the ROLE_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getResource

public static org.rhq.core.domain.resource.Resource getResource(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Retrieve the Resource value of the RESOURCE_ATTR parameter from the HTTP request. If the resource is not cached in the request, set a user error and return null.


setResource

public static void setResource(javax.servlet.http.HttpServletRequest request,
                               org.rhq.core.domain.resource.Resource resource)
Deprecated. 
Set the Resource value in the RESOURCE_ATTR parameter of the HTTP request.


setResourceType

public static void setResourceType(javax.servlet.http.HttpServletRequest request,
                                   org.rhq.core.domain.resource.ResourceType resourceType)
Deprecated. 
Set the Resource value in the RESOURCE_ATTR parameter of the HTTP request.


getGroupId

public static Integer getGroupId(javax.servlet.http.HttpServletRequest request)
                          throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the RESOURCE_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getGroupCategory

public static org.rhq.core.domain.resource.group.GroupCategory getGroupCategory(javax.servlet.http.HttpServletRequest request)
                                                                         throws ParameterNotFoundException
Deprecated. 
Throws:
ParameterNotFoundException

setGroupCategory

public static void setGroupCategory(javax.servlet.http.HttpServletRequest request,
                                    org.rhq.core.domain.resource.group.GroupCategory category)
Deprecated. 

getResourceGroupIfExists

public static org.rhq.core.domain.resource.group.ResourceGroup getResourceGroupIfExists(javax.servlet.http.HttpServletRequest request)
Deprecated. 

setResourceGroup

public static void setResourceGroup(javax.servlet.http.HttpServletRequest request,
                                    org.rhq.core.domain.resource.group.ResourceGroup resourceGroup)
Deprecated. 

getRes

public static org.rhq.core.domain.resource.Resource getRes(javax.servlet.http.HttpServletRequest request)
Deprecated. 

setRes

public static void setRes(javax.servlet.http.HttpServletRequest request,
                          org.rhq.core.domain.resource.Resource resource)
Deprecated. 

setErrorWithNullCheck

public static void setErrorWithNullCheck(javax.servlet.http.HttpServletRequest request,
                                         Exception e,
                                         String nullMsg,
                                         String regularMsg)
Deprecated. 

getResourceId

public static Integer getResourceId(javax.servlet.http.HttpServletRequest request)
                             throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the RESOURCE_ID_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getResourceIds

public static Integer[] getResourceIds(javax.servlet.http.HttpServletRequest request)
                                throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer values of the RESOURCE_ID_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getScheduleId

public static Integer getScheduleId(javax.servlet.http.HttpServletRequest request)
                             throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the SCHEDULE_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getResourceTypeId

public static Integer getResourceTypeId(javax.servlet.http.HttpServletRequest request)
                                 throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the RESOURCE_TYPE_ID_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getResourceType

public static org.rhq.core.domain.resource.ResourceType getResourceType(javax.servlet.http.HttpServletRequest request)
Deprecated. 

getAutogroupResourceTypeId

public static Integer getAutogroupResourceTypeId(javax.servlet.http.HttpServletRequest request)
                                          throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the AUTOGROUP_TYPE_ID_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getUserId

public static Integer getUserId(javax.servlet.http.HttpServletRequest request)
                         throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the USER_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getMetricId

public static Integer getMetricId(javax.servlet.http.HttpServletRequest request)
                           throws ParameterNotFoundException
Deprecated. 
Retrieve the Integer value of the METRIC_BASELINE_PARAM parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getUrl

public static String getUrl(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Retrieve the String value of the URL_ATTR parameter from the HTTP request.

Throws:
ParameterNotFoundException - if the parameter was not specified

getPageNum

public static int getPageNum(javax.servlet.http.HttpServletRequest request,
                             String param)
Deprecated. 
Retrieve the int value of the Constants.PAGENUM_PARAM request parameter, or Constants.PAGENUM_DEFAULT if the parameter was not found or not specified as an integer.


getPageSize

public static int getPageSize(javax.servlet.http.HttpServletRequest request,
                              String param)
Deprecated. 
Retrieve the int value of the Constants.PAGESIZE_PARAM request parameter, or Constants.PAGESIZE_DEFAULT if the parameter was not found or not specified as an integer.


setConfirmation

public static void setConfirmation(javax.servlet.http.HttpServletRequest request,
                                   String key)
Deprecated. 
Set a confirmation message upon completion of a user action.

Parameters:
key - the message resource key

setConfirmation

public static void setConfirmation(javax.servlet.http.HttpServletRequest request,
                                   String key,
                                   Object value0)
Deprecated. 
Set a confirmation message with a replacement value upon completion of a user action.

Parameters:
key - the message resource key
value0 - the replacement value

setError

public static void setError(javax.servlet.http.HttpServletRequest request,
                            String key)
Deprecated. 
Set an error message when a user action fails with a user-level error.

Parameters:
key - the message resource key

setError

public static void setError(javax.servlet.http.HttpServletRequest request,
                            String key,
                            String property)
Deprecated. 
Set an error message when a user action fails with a user-level error.

Parameters:
key - the message resource key
property - the form property for which the error occurred

setErrorObject

public static void setErrorObject(javax.servlet.http.HttpServletRequest request,
                                  String key,
                                  String object)
Deprecated. 
Set an error message when a user action fails with a user-level error.

Parameters:
key - the message resource key
property - the form property for which the error occurred

setError

public static void setError(javax.servlet.http.HttpServletRequest request,
                            org.apache.struts.action.ActionMessage msg,
                            String property)
Deprecated. 

setErrors

public static void setErrors(javax.servlet.http.HttpServletRequest request,
                             org.apache.struts.action.ActionErrors errs)
Deprecated. 
sets an ActionErrors object into the request object.

typically this api is used when an action class builds up a list of ActionError objects.

Current use case is building of the ConfigOptions before saving into bizapp layer.


setError

public static void setError(javax.servlet.http.HttpServletRequest request,
                            String key,
                            Object value0)
Deprecated. 
Set an error message with a replacement value when a user action fails with a user-level error.

Parameters:
key - the message resource key
value0 - the replacement value

setError

public static void setError(javax.servlet.http.HttpServletRequest request,
                            String key,
                            Object value0,
                            String property)
Deprecated. 
Set an error message with a replacement value when a user action fails with a user-level error.

Parameters:
key - the message resource key
value0 - the replacement value
property - the form property for which the error occurred

isCancelClicked

public static boolean isCancelClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "cancel" button was clicked on the previous page. If so, one of the Constants.CANCEL_PARAM or Constants.CANCEL_X_PARAM parameters will exist.


isOkClicked

public static boolean isOkClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "ok" button was clicked on the previous page. If so, one of the Constants.OK_PARAM or Constants.OK_X_PARAM parameters will exist.


isOkAssignClicked

public static boolean isOkAssignClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "okassign" button was clicked on the previous page. If so, one of the Constants.OK_ASSIGN_PARAM or Constants.OK_ASSIGN_X_PARAM parameters will exist.


isResetClicked

public static boolean isResetClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "reset" button was clicked on the previous page. If so, one of the Constants.RESET_PARAM or Constants.RESET_X_PARAM parameters will exist.


isNewClicked

public static boolean isNewClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "new" button was clicked on the previous page. If so, one of the Constants.NEW_PARAM or Constants.NEW_X_PARAM parameters will exist.


isEditClicked

public static boolean isEditClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "edit" button was clicked on the previous page. If so, one of the Constants.EDIT_PARAM or Constants.EDIT_X_PARAM parameters will exist.


isAddClicked

public static boolean isAddClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if an "add" button was clicked on the previous page. If so, one of the Constants.ADD_PARAM or Constants.ADD_X_PARAM parameters will exist.


isRemoveClicked

public static boolean isRemoveClicked(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Examine the request to see if a "remove" button was clicked on the previous page. If so, one of the Constants.REMOVE_PARAM or Constants.REMOVE_X_PARAM parameters will exist.


propogateParam

public static void propogateParam(javax.servlet.http.HttpServletRequest request,
                                  Map params,
                                  String param)
Deprecated. 
Propogate a request parameter.

Parameters:
params - the parameters passed to the ActionForward
param - the parameter name to propogate

message

public static String message(javax.servlet.http.HttpServletRequest request,
                             String key)
Deprecated. 
Get an i18n message from the application resource bundle.

Parameters:
key - the message key we want

message

public static String message(javax.servlet.http.HttpServletRequest request,
                             String key,
                             Object[] args)
Deprecated. 
Get an i18n message from the application resource bundle.

Parameters:
key - the message key we want
args - the positional parameters for the message

message

public static String message(javax.servlet.http.HttpServletRequest request,
                             String bundle,
                             String locale,
                             String key)
Deprecated. 
Get an i18n message from the application resource bundle.

Parameters:
bundle - the resource bundle name
bundle - the user locale
key - the message key we want

message

public static String message(javax.servlet.http.HttpServletRequest request,
                             String bundle,
                             String locale,
                             String key,
                             Object[] args)
Deprecated. 
Get an i18n message from the application resource bundle.

Parameters:
bundle - the resource bundle name
bundle - the user locale
key - the message key we want
args - the positional parameters for the message

bustaCache

public static void bustaCache(javax.servlet.ServletRequest request,
                              javax.servlet.ServletResponse response)
Deprecated. 

bustaCache

public static void bustaCache(javax.servlet.ServletRequest request,
                              javax.servlet.ServletResponse response,
                              boolean expire)
Deprecated. 
When you really really want to defeat a browser's cache, expire the content and set the no-cache header

Parameters:
expire - set true to have the content expire immediately

dumpRequestParams

public static void dumpRequestParams(javax.servlet.ServletRequest request,
                                     PrintWriter out,
                                     boolean html)
Deprecated. 
A development aid.

Since most parameter handling is wrapped by utility methods, quick-n-dirty debugging of what data is actually passed in a request is sometimes necessary. Obviously, you wouldn't want this in production.

Parameters:
out - output the parameter dump to a PrintWriter
html - formats the dump with <ol> if true

dumpRequestParams

public static void dumpRequestParams(javax.servlet.ServletRequest request,
                                     OutputStream out,
                                     boolean html)
Deprecated. 

dumpRequestParams

public static void dumpRequestParams(javax.servlet.ServletRequest request,
                                     org.apache.commons.logging.Log log,
                                     boolean html)
Deprecated. 

dumpRequestParamsToString

public static String dumpRequestParamsToString(javax.servlet.ServletRequest request,
                                               boolean html)
Deprecated. 

dumpRequestAttributesToString

public static String dumpRequestAttributesToString(javax.servlet.ServletRequest request)
Deprecated. 

dumpRequestAttributesToString

public static void dumpRequestAttributesToString(javax.servlet.ServletRequest request,
                                                 PrintWriter out)
Deprecated. 

dumpRequestAttributesToString

public static void dumpRequestAttributesToString(javax.servlet.ServletRequest request,
                                                 OutputStream out)
Deprecated. 


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.