Feeder + java method


I want to call some webservice with gatling with an CSV input feeder. But in my request I’ve some others parameter come from session and from Java Static method (with feed param).
How can I make a good request for that ?

val feeder = csv(“user.csv”)

val httpConf = http
.baseURL(“https://BLABLA.net”) // Here is the root for all relative URLs
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”) // Here are the common headers
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0”)

val headers_10 = Map(“Content-Type” → “application/x-www-form-urlencoded”) // Note the headers specific to a given request

val scn = scenario(“Scenario login”) // A scenario is a chain of requests and pauses
.header(“Content-Type”, “application/json”)
.body(StringBody("{ “login” : “${email}”, “password” : “${password}”, “time” : “+CustomParamEncoder.getTime()+”, “token” : “”+CustomParamEncoder.getTokenPass(password)+""}")).asJSON

.header(“Content-Type”, “application/json”)
.body(StringBody(session => “”"{ “lang”:“fr”, “login” : “”""+email+"""", “”" + CustomParamEncoder.getToken( session(“sessionId”).as[String]) + “”"}""")).asJSON

I don’t know how to misc all sort of variable in scala :-\