Look at RequestContext class in the LS API. (i.e. RequestContext.getParameterString() and one or two other methods...)