I need to get the http method like POST/PATCH/GET/etc from a joinPoint in an aspect.
@Before("isRestController()")
public void handlePost(JoinPoint point) {
// do something to get for example "POST" to use below
handle(arg, "POST", someMethod::getBeforeActions);
}
From point.getThis.getClass()
, I get the the controller that this call is intercepted. Then if I get the method from it and then annotations. That should be good enough right?
So point.getThis().getClass().getMethod(point.getSignature().getName(), ???)
How do i get Class paramaterTypes?