クラス MethodNotAllowedException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
org.springframework.web.server.MethodNotAllowedException
- 実装されているすべてのインターフェース:
SerializableSE, ErrorResponse
レスポンスステータス 405 に適合するエラーの例外(メソッドは許可されません)。
- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
ネストされたクラスの要約
インターフェース ErrorResponse から継承されたネストクラス / インターフェース
ErrorResponse.Builder, ErrorResponse.Interceptorコンストラクターの概要
コンストラクターコンストラクター説明MethodNotAllowedException(StringSE method, @Nullable CollectionSE<HttpMethod> supportedMethods) MethodNotAllowedException(HttpMethod method, CollectionSE<HttpMethod> supportedMethods) 方法の概要
修飾子と型メソッド説明この URL で許可されている HTTP メソッドをドキュメント化する "Allow" ヘッダーを含む HttpHeaders を返します (利用可能な場合)。そうでない場合は空のインスタンスを返します。失敗したリクエストの HTTP メソッドを返します。サポートされている HTTP メソッドのリストを返します。クラス ResponseStatusException から継承されたメソッド
getMessage, getReason, updateAndGetBodyクラス ErrorResponseException から継承されたメソッド
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeクラス NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCauseクラス ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース ErrorResponse から継承されたメソッド
getDetailMessageArguments, getTitleMessageCode, getTypeMessageCode
コンストラクターの詳細
MethodNotAllowedException
MethodNotAllowedException
public MethodNotAllowedException(StringSE method, @Nullable CollectionSE<HttpMethod> supportedMethods)
メソッドの詳細
getHeaders
この URL で許可されている HTTP メソッドをドキュメント化する "Allow" ヘッダーを含む HttpHeaders を返します (利用可能な場合)。そうでない場合は空のインスタンスを返します。- 次で指定:
- インターフェース
ErrorResponseのgetHeaders - オーバーライド:
- クラス
ResponseStatusExceptionのgetHeaders
getHttpMethod
失敗したリクエストの HTTP メソッドを返します。getSupportedMethods
サポートされている HTTP メソッドのリストを返します。