Class RequestMethodNotAllowedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RequestMethodNotAllowedException
    extends RequestException
    Exception thrown when a request handler does not allow a specific request method.
    See Also:
    Serialized Form
    • Constructor Detail

      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException()
        Instantiates a new RequestMethodNotAllowedException.
      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException​(java.lang.String msg)
        Instantiates a new RequestMethodNotAllowedException.
        Parameters:
        msg - a message to associate with the exception
      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException​(java.lang.Throwable cause)
        Instantiates a new RequestMethodNotAllowedException.
        Parameters:
        cause - the real cause of the exception
      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException​(java.lang.String msg,
                                                java.lang.Throwable cause)
        Instantiates a new RequestMethodNotAllowedException.
        Parameters:
        msg - the detail message
        cause - the real cause of the exception
      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException​(MethodType requestMethod,
                                                java.lang.String msg)
        Instantiates a new RequestMethodNotAllowedException.
        Parameters:
        requestMethod - the request method
        msg - the detail message
      • RequestMethodNotAllowedException

        public RequestMethodNotAllowedException​(MethodType requestMethod)
        Instantiates a new RequestMethodNotAllowedException.
        Parameters:
        requestMethod - the request method
    • Method Detail

      • getRequestMethod

        public MethodType getRequestMethod()
        Gets the request method type.
        Returns:
        the request method type