mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-31 06:33:29 +00:00
Polish Javadoc HttpStatusServerAccessDeniedHandler
This commit is contained in:
parent
24a4fbfe56
commit
4d410b0b61
@ -30,13 +30,18 @@ import org.springframework.web.server.ServerWebExchange;
|
|||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an HTTP Status that is provided when
|
* Sets the provided HTTP Status when access is denied.
|
||||||
|
*
|
||||||
* @author Rob Winch
|
* @author Rob Winch
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class HttpStatusServerAccessDeniedHandler implements ServerAccessDeniedHandler {
|
public class HttpStatusServerAccessDeniedHandler implements ServerAccessDeniedHandler {
|
||||||
private final HttpStatus httpStatus;
|
private final HttpStatus httpStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an instance with the provided status
|
||||||
|
* @param httpStatus the status to use
|
||||||
|
*/
|
||||||
public HttpStatusServerAccessDeniedHandler(HttpStatus httpStatus) {
|
public HttpStatusServerAccessDeniedHandler(HttpStatus httpStatus) {
|
||||||
Assert.notNull(httpStatus, "httpStatus cannot be null");
|
Assert.notNull(httpStatus, "httpStatus cannot be null");
|
||||||
this.httpStatus = httpStatus;
|
this.httpStatus = httpStatus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user