/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public void discardCookie(String name, String path, String domain, boolean secure) { cookies.add(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }
/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public void discardCookie(String name, String path, String domain, boolean secure) { cookies.add(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }
/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public void discardCookie(String name, String path, String domain, boolean secure) { cookies.add(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }
/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public Result discardingCookie(String name, String path, String domain, boolean secure) { return withCookies(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }
/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public Result discardingCookie(String name, String path, String domain, boolean secure) { return withCookies(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }
/** * Discard a cookie in this result * * @param name The name of the cookie to discard, must not be null * @param path The path of the cookie te discard, may be null * @param domain The domain of the cookie to discard, may be null * @param secure Whether the cookie to discard is secure */ public Result discardingCookie(String name, String path, String domain, boolean secure) { return withCookies(new DiscardingCookie(name, path, Option.apply(domain), secure).toCookie().asJava()); }