Package io.jmix.oidc.resourceserver
Class BeforeResourceServerApiInvocationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.oidc.resourceserver.BeforeResourceServerApiInvocationEvent
- All Implemented Interfaces:
 Serializable
public class BeforeResourceServerApiInvocationEvent
extends org.springframework.context.ApplicationEvent
A copy of io.jmix.securityoauth2.event.BeforeInvocationEvent. Event fired before API call. Event listeners can
 prevent a controller invocation using 
preventInvocation() method.- See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionBeforeResourceServerApiInvocationEvent(org.springframework.security.core.Authentication authentication, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)  - 
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationintjavax.servlet.ServletRequestjavax.servlet.ServletResponseorg.springframework.security.core.AuthenticationbooleanvoidvoidsetErrorCode(int errorCode) voidsetErrorMessage(String errorMessage) Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString 
- 
Constructor Details
- 
BeforeResourceServerApiInvocationEvent
public BeforeResourceServerApiInvocationEvent(org.springframework.security.core.Authentication authentication, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)  
 - 
 - 
Method Details
- 
getSource
public org.springframework.security.core.Authentication getSource()- Overrides:
 getSourcein classEventObject
 - 
getAuthentication
public org.springframework.security.core.Authentication getAuthentication() - 
getRequest
public javax.servlet.ServletRequest getRequest() - 
getResponse
public javax.servlet.ServletResponse getResponse() - 
isInvocationPrevented
public boolean isInvocationPrevented() - 
preventInvocation
public void preventInvocation() - 
getErrorCode
public int getErrorCode() - 
setErrorCode
public void setErrorCode(int errorCode)  - 
getErrorMessage
 - 
setErrorMessage
 
 -