Class InvocationParser


  • public final class InvocationParser
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Optional<T> findAnnotation​(java.lang.reflect.Method method, java.lang.Class<T> findAnnotation)  
      static java.util.Optional<java.lang.Object> findReqestBody​(java.lang.reflect.Method method, java.lang.Object[] args)  
      static <T> T getAnnotation​(java.lang.reflect.Method method, java.lang.Class<T> clazz, java.lang.String message)  
      static java.lang.Class<?> getGenericTypeOfMethod​(java.lang.Object proxy, java.lang.reflect.Method method)  
      static InvocationDetails getInvocationDetails​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      static java.util.Map<java.lang.String,​java.lang.String> getPathVariables​(java.lang.reflect.Method method, java.lang.Object[] args)  
      static org.springframework.web.bind.annotation.RequestMethod getRequestMethod​(java.lang.reflect.Method method)  
      static org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String> getRequestVariables​(java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRequestMethod

        public static org.springframework.web.bind.annotation.RequestMethod getRequestMethod​(java.lang.reflect.Method method)
      • findAnnotation

        public static <T> java.util.Optional<T> findAnnotation​(java.lang.reflect.Method method,
                                                               java.lang.Class<T> findAnnotation)
      • getAnnotation

        public static <T> T getAnnotation​(java.lang.reflect.Method method,
                                          java.lang.Class<T> clazz,
                                          java.lang.String message)
      • getPathVariables

        public static java.util.Map<java.lang.String,​java.lang.String> getPathVariables​(java.lang.reflect.Method method,
                                                                                              java.lang.Object[] args)
      • getRequestVariables

        public static org.springframework.util.MultiValueMap<java.lang.String,​java.lang.String> getRequestVariables​(java.lang.reflect.Method method,
                                                                                                                          java.lang.Object[] args)
      • findReqestBody

        public static java.util.Optional<java.lang.Object> findReqestBody​(java.lang.reflect.Method method,
                                                                          java.lang.Object[] args)
      • getGenericTypeOfMethod

        public static java.lang.Class<?> getGenericTypeOfMethod​(java.lang.Object proxy,
                                                                java.lang.reflect.Method method)
                                                         throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • getInvocationDetails

        public static InvocationDetails getInvocationDetails​(java.lang.Object proxy,
                                                             java.lang.reflect.Method method,
                                                             java.lang.Object[] args)
                                                      throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException