public class OutboundRedirectConfigurationBuilder extends AbstractPathConfigurationChildBuilder
Provides a set of options to configure how responses should be handled for a specific path.
Modifier and Type | Method and Description |
---|---|
protected OutboundRedirectConfiguration |
create()
Creates a new configuration.
|
OutboundRedirectConfigurationBuilder |
whenError()
Redirects to a given url if there was any error during the request processing.
|
OutboundRedirectConfigurationBuilder |
whenException(Class<? extends Throwable> exceptionType) |
OutboundRedirectConfigurationBuilder |
whenForbidden()
Redirects to a given url only if a request was forbidden.
|
authenticateWith, authorizeWith, cors, getBuilder, redirectTo, unprotected
allPaths, forGroup, forPath, forPath, restrictive
build, http, identity, idmConfig, readFrom, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allPaths, forGroup, forPath, forPath, restrictive
build, http, identity, idmConfig
public OutboundRedirectConfigurationBuilder whenForbidden()
Redirects to a given url only if a request was forbidden. In other words, when a request is not authorized.
public OutboundRedirectConfigurationBuilder whenError()
Redirects to a given url if there was any error during the request processing.
public OutboundRedirectConfigurationBuilder whenException(Class<? extends Throwable> exceptionType)
protected OutboundRedirectConfiguration create()
Builder
Creates a new configuration.
create
in class AbstractSecurityConfigurationBuilder
Copyright © 2019. All rights reserved.