/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param host the host to use for the reverse route * @param routes the reverse routes for this router * @return the router */ public static JavaScript create(String name, String ajaxMethod, String host, JavaScriptReverseRoute... routes) { return play.api.routing.JavaScriptReverseRouter.apply( name, Scala.Option(ajaxMethod), host, Scala.varargs(routes) ); }
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param host the host to use for the reverse route * @param routes the reverse routes for this router * @return the router */ public static JavaScript create(String name, String ajaxMethod, String host, JavaScriptReverseRoute... routes) { return play.api.routing.JavaScriptReverseRouter.apply( name, Scala.Option(ajaxMethod), host, Scala.varargs(routes) ); }
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param host the host to use for the reverse route * @param routes the reverse routes for this router * @return the router */ public static JavaScript create(String name, String ajaxMethod, String host, JavaScriptReverseRoute... routes) { return play.api.routing.JavaScriptReverseRouter.apply( name, Scala.Option(ajaxMethod), host, Scala.varargs(routes) ); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Override bindings using guiceable modules. * * @param modules the set of Guice modules whose bindings override some previously configured ones * @return a copy of this builder re-configured with the provided bindings */ public final Self overrides(GuiceableModule... modules) { return newBuilder(delegate.overrides(Scala.varargs(modules))); }
/** * Override bindings using guiceable modules. */ public final Self overrides(GuiceableModule... modules) { return newBuilder(delegate.overrides(Scala.varargs(modules))); }
/** * Add bindings from guiceable modules. * * @param modules the set of modules to bind * @return a copy of this builder configured with those modules */ public final Self bindings(GuiceableModule... modules) { return newBuilder(delegate.bindings(Scala.varargs(modules))); }
/** * Override bindings using guiceable modules. * * @param modules the set of Guice modules whose bindings override some previously configured ones * @return a copy of this builder re-configured with the provided bindings */ public final Self overrides(GuiceableModule... modules) { return newBuilder(delegate.overrides(Scala.varargs(modules))); }
/** * Add bindings from guiceable modules. */ public final Self bindings(GuiceableModule... modules) { return newBuilder(delegate.bindings(Scala.varargs(modules))); }
/** * Override the module loader with the given guiceable modules. */ public GuiceApplicationBuilder load(GuiceableModule... modules) { return newBuilder(delegate.load(Scala.varargs(modules))); }
/** * Add addtional session to this request. */ @SuppressWarnings(value = "unchecked") public FakeRequest withFlash(String name, String value) { fake = fake.withFlash(Scala.varargs(Scala.Tuple(name, value))); return this; }
/** * Add addtional session to this request. */ @SuppressWarnings(value = "unchecked") public FakeRequest withSession(String name, String value) { fake = fake.withSession(Scala.varargs(Scala.Tuple(name, value))); return this; }
/** * Add bindings from guiceable modules. * * @param modules the set of modules to bind * @return a copy of this builder configured with those modules */ public final Self bindings(GuiceableModule... modules) { return newBuilder(delegate.bindings(Scala.varargs(modules))); }
/** * Add additional headers to this request. */ @SuppressWarnings(value = "unchecked") public FakeRequest withHeader(String name, String value) { fake = fake.withHeaders(Scala.varargs(Scala.Tuple(name, value))); return this; }
/** * Override the module loader with the given guiceable modules. * * @param modules the set of overriding modules * @return an application builder that incorporates the overrides */ public GuiceApplicationBuilder load(GuiceableModule... modules) { return newBuilder(delegate.load(Scala.varargs(modules))); }
/** * Override the module loader with the given guiceable modules. * * @param modules the set of overriding modules * @return an application builder that incorporates the overrides */ public GuiceApplicationBuilder load(GuiceableModule... modules) { return newBuilder(delegate.load(Scala.varargs(modules))); }
/** * Add cookies to this request */ @SuppressWarnings(value = "unchecked") public FakeRequest withCookies(Http.Cookie... cookies) { List <play.api.mvc.Cookie> scalacookies = new ArrayList<play.api.mvc.Cookie>(); for (Http.Cookie c : cookies) { scalacookies.add(new play.api.mvc.Cookie(c.name(), c.value(), Scala.<Object>Option(c.maxAge()), c.path(), Scala.Option(c.domain()), c.secure(), c.httpOnly()) ); } fake = fake.withCookies(Scala.varargs(scalacookies.toArray())); return this; }