Class SecurityMockMvcRequestBuilders.LogoutRequestBuilder
java.lang.Object
org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.LogoutRequestBuilder
- All Implemented Interfaces:
org.springframework.beans.Mergeable,org.springframework.test.web.servlet.RequestBuilder
- Enclosing class:
- SecurityMockMvcRequestBuilders
public static final class SecurityMockMvcRequestBuilders.LogoutRequestBuilder
extends Object
implements org.springframework.test.web.servlet.RequestBuilder, org.springframework.beans.Mergeable
Creates a logout request (including any necessary
CsrfToken)- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.mock.web.MockHttpServletRequestbuildRequest(jakarta.servlet.ServletContext servletContext) booleanSpecifies the logout URL to POST to.Specifies the logout URL to POST to.
-
Method Details
-
buildRequest
public org.springframework.mock.web.MockHttpServletRequest buildRequest(jakarta.servlet.ServletContext servletContext) - Specified by:
buildRequestin interfaceorg.springframework.test.web.servlet.RequestBuilder
-
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.LogoutRequestBuilderfor additional customizations
-
logoutUrl
public SecurityMockMvcRequestBuilders.LogoutRequestBuilder logoutUrl(String logoutUrl, Object... uriVars) Specifies the logout URL to POST to.- Parameters:
logoutUrl- the logout URL to POST to.uriVars- the URI variables- Returns:
- the
SecurityMockMvcRequestBuilders.LogoutRequestBuilderfor additional customizations
-
isMergeEnabled
public boolean isMergeEnabled()- Specified by:
isMergeEnabledin interfaceorg.springframework.beans.Mergeable
-
merge
- Specified by:
mergein interfaceorg.springframework.beans.Mergeable
-