- 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
ConstructorDescriptionCreates a method not allowed exception.MethodNotAllowedException
(String message) Creates a method not allowed exception with the specified message.MethodNotAllowedException
(String message, Throwable cause) Creates a method not allowed exception with the specified message and cause.Creates a method not allowed exception with the specified cause.MethodNotAllowedException
(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
fromStatus, fromStatus, fromStatus, fromStatus, 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
public MethodNotAllowedException()Creates a method not allowed exception.
-
MethodNotAllowedException
Creates a method not allowed exception with the specified message.
- Parameters:
message
- a message
-
MethodNotAllowedException
Creates a method not allowed exception with the specified cause.
- Parameters:
cause
- a cause
-
MethodNotAllowedException
Creates a method not allowed exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-
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 set of allowed methods
-