/** * Returns a new Call with the given fragment. * * @param fragment the URL fragment * @return a copy of this call that contains the fragment */ public Call withFragment(String fragment) { return new play.api.mvc.Call(method(), url(), fragment); }
private static Call toCall(String methodAndPath) { if(Optional.ofNullable(methodAndPath).isPresent()) { String[] splitMethodAndPath = methodAndPath.split("->"); return Call.apply(splitMethodAndPath[0], splitMethodAndPath[1]); } else { return null; } }
/** * Returns a new Call with the given fragment. * * @param fragment the URL fragment * @return a copy of this call that contains the fragment */ public Call withFragment(String fragment) { return new play.api.mvc.Call(method(), url(), fragment); }
/** * Returns a new Call with the given fragment. */ public Call withFragment(String fragment) { return new play.api.mvc.Call(method(), url(), fragment); }
/** * Returns a new Call with the given fragment. * * @param fragment the URL fragment * @return a copy of this call that contains the fragment */ public Call withFragment(String fragment) { return new play.api.mvc.Call(method(), url(), fragment); }
/** * Append a unique identifier to the URL. * * @return a copy if this call with a unique identifier to this url */ public Call unique() { return new play.api.mvc.Call(method(), this.uniquify(this.url()), fragment()); }
/** * Append a unique identifier to the URL. */ public Call unique() { return new play.api.mvc.Call(method(), this.uniquify(this.url()), fragment()); }
/** * Append a unique identifier to the URL. * * @return a copy if this call with a unique identifier to this url */ public Call unique() { return new play.api.mvc.Call(method(), this.uniquify(this.url()), fragment()); }
/** * Append a unique identifier to the URL. * * @return a copy if this call with a unique identifier to this url */ public Call unique() { return new play.api.mvc.Call(method(), this.uniquify(this.url()), fragment()); }