Class NotAllowedException

All Implemented Interfaces:
Serializable

public final class NotAllowedException extends HttpStatusException
Exception thrown when the request HTTP Method is not allowed.
Since:
4.6.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • NotAllowedException

      public NotAllowedException(String requestMethod, URI uri, Set<String> allowedMethods)
      Parameters:
      requestMethod - Request Method
      uri - The URI
      allowedMethods - Allowed methods for URI
  • Method Details

    • getRequestMethod

      public String getRequestMethod()
      Returns:
      Request Method
    • getUri

      public URI getUri()
      Returns:
      The URI
    • getAllowedMethods

      public Set<String> getAllowedMethods()
      Returns:
      Allowed methods for URI