@Primary @Singleton public class HttpStatusCodeRejectionHandler extends java.lang.Object implements RejectionHandler
SecurityFilter with the response of correspondent HTTP Status coded.| Constructor and Description |
|---|
HttpStatusCodeRejectionHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
reject(io.micronaut.http.HttpRequest<?> request,
boolean forbidden) |
public HttpStatusCodeRejectionHandler()
public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> reject(io.micronaut.http.HttpRequest<?> request,
boolean forbidden)
reject in interface RejectionHandlerrequest - HttpRequest being processedforbidden - if true indicates that although the user was authenticated, he did not have the necessary access privileges.