Newer Version Available
getParameters()
Returns a map of the query string parameters for the PageReference; both POST and GET
parameters are included. The key string contains the name of the parameter, while the value
string contains the value of the parameter.
Signature
public Map<String, String> getParameters()
Usage
This map can be modified and remains in scope for the PageReference object. For instance, you could do:
1PageReference.getParameters().put('id', myID);Parameter keys are case-insensitive. For example:
1System.assert(
2 ApexPages.currentPage().getParameters().get('myParamName') ==
3 ApexPages.currentPage().getParameters().get('myparamname'));