public class CookieResultMatchers extends Object
An instance of this class is typically accessed via
 MockMvcResultMatchers.cookie().
| Modifier | Constructor and Description | 
|---|---|
protected  | 
CookieResultMatchers()
Protected constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ResultMatcher | 
comment(String name,
       org.hamcrest.Matcher<? super String> matcher)
Assert a cookie's comment with a Hamcrest  
Matcher. | 
ResultMatcher | 
comment(String name,
       String comment)
Assert a cookie's comment value. 
 | 
ResultMatcher | 
doesNotExist(String name)
Assert a cookie does not exist. 
 | 
ResultMatcher | 
domain(String name,
      org.hamcrest.Matcher<? super String> matcher)
Assert a cookie's domain with a Hamcrest  
Matcher. | 
ResultMatcher | 
domain(String name,
      String domain)
Assert a cookie's domain value. 
 | 
ResultMatcher | 
exists(String name)
Assert a cookie exists. 
 | 
ResultMatcher | 
httpOnly(String name,
        boolean httpOnly)
Assert whether the cookie must be HTTP only. 
 | 
ResultMatcher | 
maxAge(String name,
      int maxAge)
Assert a cookie's maxAge value. 
 | 
ResultMatcher | 
maxAge(String name,
      org.hamcrest.Matcher<? super Integer> matcher)
Assert a cookie's maxAge with a Hamcrest  
Matcher. | 
ResultMatcher | 
path(String name,
    org.hamcrest.Matcher<? super String> matcher)
Assert a cookie path with a Hamcrest  
Matcher. | 
ResultMatcher | 
path(String name,
    String path)  | 
ResultMatcher | 
secure(String name,
      boolean secure)
Assert whether the cookie must be sent over a secure protocol or not. 
 | 
ResultMatcher | 
value(String name,
     org.hamcrest.Matcher<? super String> matcher)
Assert a cookie value with the given Hamcrest  
Matcher. | 
ResultMatcher | 
value(String name,
     String expectedValue)
Assert a cookie value. 
 | 
ResultMatcher | 
version(String name,
       int version)
Assert a cookie's version value. 
 | 
ResultMatcher | 
version(String name,
       org.hamcrest.Matcher<? super Integer> matcher)
Assert a cookie's version with a Hamcrest  
Matcher | 
protected CookieResultMatchers()
MockMvcResultMatchers.cookie().public ResultMatcher value(String name, org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher value(String name, String expectedValue)
public ResultMatcher exists(String name)
public ResultMatcher doesNotExist(String name)
public ResultMatcher maxAge(String name, org.hamcrest.Matcher<? super Integer> matcher)
Matcher.public ResultMatcher maxAge(String name, int maxAge)
public ResultMatcher path(String name, org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher path(String name, String path)
public ResultMatcher domain(String name, org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher domain(String name, String domain)
public ResultMatcher comment(String name, org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher comment(String name, String comment)
public ResultMatcher version(String name, org.hamcrest.Matcher<? super Integer> matcher)
Matcherpublic ResultMatcher version(String name, int version)
public ResultMatcher secure(String name, boolean secure)
public ResultMatcher httpOnly(String name, boolean httpOnly)