Interface RequestHandler

    • Method Detail

      • declaringClass

        @Deprecated
        java.lang.Class<?> declaringClass()
        Deprecated.
        Returns:
        declaring class
        Since:
        2.7.0 This is introduced to preserve backwards compat with groups
      • isAnnotatedWith

        boolean isAnnotatedWith​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      • groupName

        java.lang.String groupName()
      • getName

        java.lang.String getName()
      • supportedMethods

        java.util.Set<org.springframework.web.bind.annotation.RequestMethod> supportedMethods()
      • produces

        java.util.Set<org.springframework.http.MediaType> produces()
      • consumes

        java.util.Set<org.springframework.http.MediaType> consumes()
      • findAnnotation

        <T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation​(java.lang.Class<T> annotation)
      • getReturnType

        com.fasterxml.classmate.ResolvedType getReturnType()
      • findControllerAnnotation

        <T extends java.lang.annotation.Annotation> java.util.Optional<T> findControllerAnnotation​(java.lang.Class<T> annotation)
      • getRequestMapping

        @Deprecated
        RequestMappingInfo<?> getRequestMapping()
        Deprecated.
        This is introduced to preserve backwards compat
        Returns:
        request mapping info
      • getHandlerMethod

        @Deprecated
        org.springframework.web.method.HandlerMethod getHandlerMethod()
        Deprecated.
        This is introduced to preserve backwards compat
        Returns:
        handler method
      • combine

        RequestHandler combine​(RequestHandler other)
        This is to merge two request handlers that are indistinguishable other than the media types supported
        Parameters:
        other - handler
        Returns:
        combined request handler
        Since:
        2.5.0
      • byPatternsCondition

        static java.util.Comparator<RequestHandler> byPatternsCondition()
      • byOperationName

        static java.util.Comparator<RequestHandler> byOperationName()