@Response(code=405, description="Method Not Allowed") @Deprecated public class MethodNotAllowed extends RestException
MethodNotAllowed
A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
Modifier and Type | Field and Description |
---|---|
static int |
CODE
Deprecated.
HTTP status code
|
static String |
MESSAGE
Deprecated.
Default message
|
Constructor and Description |
---|
MethodNotAllowed()
Deprecated.
Constructor.
|
MethodNotAllowed(String msg)
Deprecated.
Constructor.
|
MethodNotAllowed(String msg,
Object... args)
Deprecated.
Constructor.
|
MethodNotAllowed(Throwable cause)
Deprecated.
Constructor.
|
MethodNotAllowed(Throwable cause,
String msg,
Object... args)
Deprecated.
Constructor.
|
getFullStackMessage, getOccurrence, getRootCause, getStatus, hashCode, setOccurrence, setStatus, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int CODE
public static final String MESSAGE
public MethodNotAllowed(Throwable cause, String msg, Object... args)
cause
- The cause. Can be msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public MethodNotAllowed(String msg)
msg
- The message. Can be public MethodNotAllowed()
public MethodNotAllowed(String msg, Object... args)
msg
- The message. Can be args
- Optional MessageFormat
-style arguments in the message.public MethodNotAllowed(Throwable cause)
cause
- The cause. Can be Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.