/* Ċ Ġ* ĠL am bl in Ċ Ġ* ĠCopyright Ġ 2 0 1 8 ĠBor isl av ĠShe ker ov Ċ Ġ* ĠLicensed Ġunder ĠApache Ġ 2 . 0 : Ġhttps :// github . com / Bor isl av She ker ov / lam bl in / blob / master / LICENSE Ċ Ġ*/ Ċ Ċ package Ġcom . lam bl in . example . lambda Ċ Ċ import Ġcom . amazonaws . services . lambda . runtime . Context Ċ import Ġcom . amazonaws . services . lambda . runtime . Request Stream Handler Ċ import Ġcom . lam bl in . core . L am bl in Ċ import Ġcom . lam bl in . example . lambda . controller . Todo Controller Ċ import Ġcom . lam bl in . example . lambda . service . InMemory DataService Ċ import Ġjava . io . InputStream Ċ import Ġjava . io . OutputStream Ċ Ċ val Ġtodo Controller Ġ= ĠTodo Controller ( InMemory DataService ) Ċ val Ġlam bl in Ġ= ĠL am bl in . front Controller ( todo Controller ) Ċ Ċ /** ĠDefines Ġthe Ġmain ĠHandler Ġclass Ġused Ġby ĠLambda . Ġ*/ Ċ class ĠLambda Handler Ġ: ĠRequest Stream Handler Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġhandle Request ( input : ĠInputStream , Ġoutput : ĠOutputStream , Ġp 2 : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlam bl in . handler Request ( input , Ġoutput ) ĊĠĠĠ Ġ} Ċ Ċ }