implement getRequestParameter for Scala