/** * Builds a new Http.Context from a new request * @return a new Http.Context using the default request * * @deprecated Deprecated as of 2.7.0. See <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">migration guide</a>. */ @Deprecated public static Http.Context httpContext() { return httpContext(new Http.RequestBuilder().build()); }
/** * Builds a new Http.Context from a new request * @return a new Http.Context using the default request * * @deprecated Deprecated as of 2.7.0. See <a href="https://www.playframework.com/documentation/latest/JavaHttpContextMigration27">migration guide</a>. */ @Deprecated public static Http.Context httpContext() { return httpContext(new Http.RequestBuilder().build()); }
/** * Builds a new fake request. * @param method the request method. * @param uri the relative URL. * @return the request builder. */ public static RequestBuilder fakeRequest(String method, String uri) { return new RequestBuilder().method(method).uri(uri); }
/** * Builds a new fake request. * @param method the request method. * @param uri the relative URL. * @return the request builder. */ public static RequestBuilder fakeRequest(String method, String uri) { return new RequestBuilder().method(method).uri(uri); }
/** * Build a new fake request. */ public static RequestBuilder fakeRequest(String method, String uri) { return new RequestBuilder().method(method).uri(uri); }