// @GENERATOR:play-routes-compiler // @SOURCE:/home/javastream.de/jenkins/jobs/image-search/workspace/conf/routes // @DATE:Thu Jun 29 01:20:31 CEST 2017 package router import play.core.routing._ import play.core.routing.HandlerInvokerFactory._ import play.core.j._ import play.api.mvc._ import _root_.controllers.Assets.Asset import _root_.play.libs.F class Routes( override val errorHandler: play.api.http.HttpErrorHandler, // @LINE:6 Home_2: controllers.Home, // @LINE:8 Images_3: controllers.Images, // @LINE:16 Colors_1: controllers.Colors, // @LINE:21 Assets_0: controllers.Assets, val prefix: String ) extends GeneratedRouter { @javax.inject.Inject() def this(errorHandler: play.api.http.HttpErrorHandler, // @LINE:6 Home_2: controllers.Home, // @LINE:8 Images_3: controllers.Images, // @LINE:16 Colors_1: controllers.Colors, // @LINE:21 Assets_0: controllers.Assets ) = this(errorHandler, Home_2, Images_3, Colors_1, Assets_0, "/") import ReverseRouteContext.empty def withPrefix(prefix: String): Routes = { router.RoutesPrefix.setPrefix(prefix) new Routes(errorHandler, Home_2, Images_3, Colors_1, Assets_0, prefix) } private[this] val defaultPrefix: String = { if (this.prefix.endsWith("/")) "" else "/" } def documentation = List( ("""GET""", this.prefix, """controllers.Home.index"""), ("""POST""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images""", """controllers.Images.save"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images""", """controllers.Images.index"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images/""" + "$" + """checksum<[^/]+>/thumbnail""", """controllers.Images.thumbnail(checksum:String)"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images/""" + "$" + """checksum<[^/]+>/sobel""", """controllers.Images.sobel(checksum:String)"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images/""" + "$" + """checksum<[^/]+>/reference""", """controllers.Images.reference(checksum:String)"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """images/""" + "$" + """checksum<[^/]+>""", """controllers.Images.show(checksum:String)"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """colors""", """controllers.Colors.index"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """colors/""" + "$" + """hex<[^/]+>/sample/""" + "$" + """width<[^/]+>/""" + "$" + """height<[^/]+>""", """controllers.Colors.sample(hex:String, width:Integer, height:Integer)"""), ("""GET""", this.prefix + (if(this.prefix.endsWith("/")) "" else "/") + """assets/""" + "$" + """file<.+>""", """controllers.Assets.versioned(path:String = "/public", file:Asset)"""), Nil ).foldLeft(List.empty[(String,String,String)]) { (s,e) => e.asInstanceOf[Any] match { case r @ (_,_,_) => s :+ r.asInstanceOf[(String,String,String)] case l => s ++ l.asInstanceOf[List[(String,String,String)]] }} // @LINE:6 private[this] lazy val controllers_Home_index0_route = Route("GET", PathPattern(List(StaticPart(this.prefix))) ) private[this] lazy val controllers_Home_index0_invoker = createInvoker( Home_2.index, HandlerDef(this.getClass.getClassLoader, "router", "controllers.Home", "index", Nil, "GET", """ An example controller showing a sample home page""", this.prefix + """""" ) ) // @LINE:8 private[this] lazy val controllers_Images_save1_route = Route("POST", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images"))) ) private[this] lazy val controllers_Images_save1_invoker = createInvoker( Images_3.save, HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "save", Nil, "POST", """""", this.prefix + """images""" ) ) // @LINE:9 private[this] lazy val controllers_Images_index2_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images"))) ) private[this] lazy val controllers_Images_index2_invoker = createInvoker( Images_3.index, HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "index", Nil, "GET", """""", this.prefix + """images""" ) ) // @LINE:10 private[this] lazy val controllers_Images_thumbnail3_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images/"), DynamicPart("checksum", """[^/]+""",true), StaticPart("/thumbnail"))) ) private[this] lazy val controllers_Images_thumbnail3_invoker = createInvoker( Images_3.thumbnail(fakeValue[String]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "thumbnail", Seq(classOf[String]), "GET", """""", this.prefix + """images/""" + "$" + """checksum<[^/]+>/thumbnail""" ) ) // @LINE:11 private[this] lazy val controllers_Images_sobel4_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images/"), DynamicPart("checksum", """[^/]+""",true), StaticPart("/sobel"))) ) private[this] lazy val controllers_Images_sobel4_invoker = createInvoker( Images_3.sobel(fakeValue[String]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "sobel", Seq(classOf[String]), "GET", """""", this.prefix + """images/""" + "$" + """checksum<[^/]+>/sobel""" ) ) // @LINE:12 private[this] lazy val controllers_Images_reference5_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images/"), DynamicPart("checksum", """[^/]+""",true), StaticPart("/reference"))) ) private[this] lazy val controllers_Images_reference5_invoker = createInvoker( Images_3.reference(fakeValue[String]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "reference", Seq(classOf[String]), "GET", """""", this.prefix + """images/""" + "$" + """checksum<[^/]+>/reference""" ) ) // @LINE:13 private[this] lazy val controllers_Images_show6_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("images/"), DynamicPart("checksum", """[^/]+""",true))) ) private[this] lazy val controllers_Images_show6_invoker = createInvoker( Images_3.show(fakeValue[String]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Images", "show", Seq(classOf[String]), "GET", """""", this.prefix + """images/""" + "$" + """checksum<[^/]+>""" ) ) // @LINE:16 private[this] lazy val controllers_Colors_index7_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("colors"))) ) private[this] lazy val controllers_Colors_index7_invoker = createInvoker( Colors_1.index, HandlerDef(this.getClass.getClassLoader, "router", "controllers.Colors", "index", Nil, "GET", """""", this.prefix + """colors""" ) ) // @LINE:18 private[this] lazy val controllers_Colors_sample8_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("colors/"), DynamicPart("hex", """[^/]+""",true), StaticPart("/sample/"), DynamicPart("width", """[^/]+""",true), StaticPart("/"), DynamicPart("height", """[^/]+""",true))) ) private[this] lazy val controllers_Colors_sample8_invoker = createInvoker( Colors_1.sample(fakeValue[String], fakeValue[Integer], fakeValue[Integer]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Colors", "sample", Seq(classOf[String], classOf[Integer], classOf[Integer]), "GET", """""", this.prefix + """colors/""" + "$" + """hex<[^/]+>/sample/""" + "$" + """width<[^/]+>/""" + "$" + """height<[^/]+>""" ) ) // @LINE:21 private[this] lazy val controllers_Assets_versioned9_route = Route("GET", PathPattern(List(StaticPart(this.prefix), StaticPart(this.defaultPrefix), StaticPart("assets/"), DynamicPart("file", """.+""",false))) ) private[this] lazy val controllers_Assets_versioned9_invoker = createInvoker( Assets_0.versioned(fakeValue[String], fakeValue[Asset]), HandlerDef(this.getClass.getClassLoader, "router", "controllers.Assets", "versioned", Seq(classOf[String], classOf[Asset]), "GET", """ Map static resources from the /public folder to the /assets URL path""", this.prefix + """assets/""" + "$" + """file<.+>""" ) ) def routes: PartialFunction[RequestHeader, Handler] = { // @LINE:6 case controllers_Home_index0_route(params) => call { controllers_Home_index0_invoker.call(Home_2.index) } // @LINE:8 case controllers_Images_save1_route(params) => call { controllers_Images_save1_invoker.call(Images_3.save) } // @LINE:9 case controllers_Images_index2_route(params) => call { controllers_Images_index2_invoker.call(Images_3.index) } // @LINE:10 case controllers_Images_thumbnail3_route(params) => call(params.fromPath[String]("checksum", None)) { (checksum) => controllers_Images_thumbnail3_invoker.call(Images_3.thumbnail(checksum)) } // @LINE:11 case controllers_Images_sobel4_route(params) => call(params.fromPath[String]("checksum", None)) { (checksum) => controllers_Images_sobel4_invoker.call(Images_3.sobel(checksum)) } // @LINE:12 case controllers_Images_reference5_route(params) => call(params.fromPath[String]("checksum", None)) { (checksum) => controllers_Images_reference5_invoker.call(Images_3.reference(checksum)) } // @LINE:13 case controllers_Images_show6_route(params) => call(params.fromPath[String]("checksum", None)) { (checksum) => controllers_Images_show6_invoker.call(Images_3.show(checksum)) } // @LINE:16 case controllers_Colors_index7_route(params) => call { controllers_Colors_index7_invoker.call(Colors_1.index) } // @LINE:18 case controllers_Colors_sample8_route(params) => call(params.fromPath[String]("hex", None), params.fromPath[Integer]("width", None), params.fromPath[Integer]("height", None)) { (hex, width, height) => controllers_Colors_sample8_invoker.call(Colors_1.sample(hex, width, height)) } // @LINE:21 case controllers_Assets_versioned9_route(params) => call(Param[String]("path", Right("/public")), params.fromPath[Asset]("file", None)) { (path, file) => controllers_Assets_versioned9_invoker.call(Assets_0.versioned(path, file)) } } }