config/src/main/java/org/springframework/security/config/annotation/web/configurers/LogoutConfigurer.java
public LogoutConfigurer<H> defaultLogoutSuccessHandlerFor(
			LogoutSuccessHandler handler, RequestMatcher preferredMatcher) {
		Assert.notNull(handler, "handler cannot be null");
		Assert.notNull(preferredMatcher, "preferredMatcher cannot be null");
		this.defaultLogoutSuccessHandlerMappings.put(preferredMatcher, handler);
		return this;
	}
public LogoutConfigurer<H> defaultLogoutSuccessHandlerFor(
			LogoutSuccessHandler handler, RequestMatcher preferredMatcher) {
		Assert.notNull(handler, "handler cannot be null");
		Assert.notNull(preferredMatcher, "preferredMatcher cannot be null");
		this.defaultLogoutSuccessHandlerMappings.put(preferredMatcher, handler);
		return this;
	}
public LogoutConfigurer < H > defaultLogoutSuccessHandlerFor ( LogoutSuccessHandler handler , RequestMatcher preferredMatcher ) { Assert . notNull ( handler , "handler cannot be null" ) ; Assert . notNull ( preferredMatcher , "preferredMatcher cannot be null" ) ; this . defaultLogoutSuccessHandlerMappings . put ( preferredMatcher , handler ) ; return this ; }
Sets a default {@link LogoutSuccessHandler} to be used which prefers being invoked
for the provided {@link RequestMatcher}. If no {@link LogoutSuccessHandler} is
specified a {@link SimpleUrlLogoutSuccessHandler} will be used.
If any default {@link LogoutSuccessHandler} instances are configured, then a
{@link DelegatingLogoutSuccessHandler} will be used that defaults to a
{@link SimpleUrlLogoutSuccessHandler}.

@param handler the {@link LogoutSuccessHandler} to use
@param preferredMatcher the {@link RequestMatcher} for this default
{@link LogoutSuccessHandler}
@return the {@link LogoutConfigurer} for further customizations
Sets a default { @link LogoutSuccessHandler } to be used which prefers being invoked for the provided { @link RequestMatcher } . If no { @link LogoutSuccessHandler } is specified a { @link SimpleUrlLogoutSuccessHandler } will be used . If any default { @link LogoutSuccessHandler } instances are configured then a { @link DelegatingLogoutSuccessHandler } will be used that defaults to a { @link SimpleUrlLogoutSuccessHandler } .