Class HttpUtils


  • public abstract class HttpUtils
    extends java.lang.Object
    The utilities class for HTTP
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    HttpMethod
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Set<java.lang.String> ALL_HTTP_METHODS
      All HTTP Methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS and TRACE .
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean supportsMethod​(java.lang.String method)  
      static boolean supportsMethod​(org.springframework.http.HttpMethod method)  
      static boolean supportsMethod​(org.springframework.web.bind.annotation.RequestMethod method)  
      • Methods inherited from class java.lang.Object

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

      • ALL_HTTP_METHODS

        public static final java.util.Set<java.lang.String> ALL_HTTP_METHODS
        All HTTP Methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS and TRACE .
    • Method Detail

      • supportsMethod

        public static boolean supportsMethod​(java.lang.String method)
      • supportsMethod

        public static boolean supportsMethod​(org.springframework.http.HttpMethod method)
      • supportsMethod

        public static boolean supportsMethod​(org.springframework.web.bind.annotation.RequestMethod method)