程序包 cn.taketoday.web

类 MethodNotAllowedException

所有已实现的接口:
HttpStatusCodeProvider, ErrorResponse, Serializable

public class MethodNotAllowedException extends ResponseStatusException
Exception for errors that fit response status 405 (method not allowed).
从以下版本开始:
2018-7-1 19:38:39
作者:
TODAY
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • method

      private final String method
    • supportedMethods

      private final Set<HttpMethod> supportedMethods
  • 构造器详细资料

  • 方法详细资料

    • getHeaders

      public HttpHeaders getHeaders()
      Return HttpHeaders with an "Allow" header that documents the allowed HTTP methods for this URL, if available, or an empty instance otherwise.
      指定者:
      getHeaders 在接口中 ErrorResponse
      覆盖:
      getHeaders 在类中 ResponseStatusException
    • getHttpMethod

      public String getHttpMethod()
      Return the HTTP method for the failed request.
    • getSupportedMethods

      public Set<HttpMethod> getSupportedMethods()
      Return the list of supported HTTP methods.