Class RequestVerb

java.lang.Object
mg.emberframework.core.data.RequestVerb

public class RequestVerb extends Object
Defines constants and utilities for HTTP request verbs.

This utility class provides standard HTTP verb constants and a method to determine the verb associated with a given method based on annotations.

Since:
1.0.0
Version:
1.0.0
Author:
Sandratra NIAINA
  • Field Details

  • Method Details

    • getMethodVerb

      public static String getMethodVerb(Method method)
      Determines the HTTP verb for a method based on its annotations.

      Defaults to GET unless the method is annotated with @Post.

      Parameters:
      method - the method to analyze
      Returns:
      the HTTP verb (e.g., "GET", "POST")