java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.http.base.HttpException
io.inverno.mod.http.base.MethodNotAllowedException
- All Implemented Interfaces:
Serializable
A HTTP exception that indicates a client requested Method Not Allowed (405)
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodNotAllowedException
(Set<Method> allowedMethods) Creates a method not allowed exception with the specified list of methods allowed by the requested resource.MethodNotAllowedException
(Set<Method> allowedMethods, String message) Creates a method not allowed exception with the specified list of methods allowed by the requested resource and message.MethodNotAllowedException
(Set<Method> allowedMethods, String message, Throwable cause) Creates a method not allowed exception with the specified list of methods allowed by the requested resource, message and cause.MethodNotAllowedException
(Set<Method> allowedMethods, Throwable cause) Creates a method not allowed exception with the specified list of methods allowed by the requested resource and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of methods allowed by the requested resource.Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotAllowedException
Creates a method not allowed exception with the specified list of methods allowed by the requested resource.
- Parameters:
allowedMethods
- a list of allowed methods
-
MethodNotAllowedException
Creates a method not allowed exception with the specified list of methods allowed by the requested resource and message.
- Parameters:
allowedMethods
- a list of allowed methodsmessage
- a message
-
MethodNotAllowedException
Creates a method not allowed exception with the specified list of methods allowed by the requested resource and cause.
- Parameters:
allowedMethods
- a list of allowed methodscause
- a cause
-
MethodNotAllowedException
Creates a method not allowed exception with the specified list of methods allowed by the requested resource, message and cause.
- Parameters:
allowedMethods
- a list of allowed methodsmessage
- a messagecause
- a cause
-
-
Method Details
-
getAllowedMethods
Returns the list of methods allowed by the requested resource.
- Returns:
- the list of allowed methods
-