Class SecurityMockMvcRequestBuilders.LogoutRequestBuilder
- java.lang.Object
-
- org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.LogoutRequestBuilder
-
- All Implemented Interfaces:
RequestBuilder
- Enclosing class:
- SecurityMockMvcRequestBuilders
public static final class SecurityMockMvcRequestBuilders.LogoutRequestBuilder extends Object implements RequestBuilder
Creates a logout request (including any necessaryCsrfToken
)- Since:
- 4.0
- Author:
- Rob Winch
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MockHttpServletRequest
buildRequest(javax.servlet.ServletContext servletContext)
SecurityMockMvcRequestBuilders.LogoutRequestBuilder
logoutUrl(String logoutUrl)
Specifies the logout URL to POST to.
-
-
-
Method Detail
-
buildRequest
public MockHttpServletRequest buildRequest(javax.servlet.ServletContext servletContext)
- Specified by:
buildRequest
in interfaceRequestBuilder
-
logoutUrl
public SecurityMockMvcRequestBuilders.LogoutRequestBuilder logoutUrl(String logoutUrl)
Specifies the logout URL to POST to. Defaults to "/logout".- Parameters:
logoutUrl
- the logout URL to POST to. Defaults to "/logout".- Returns:
- the
SecurityMockMvcRequestBuilders.LogoutRequestBuilder
for additional customizations
-
-