クラス 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
- 関連事項:
ネストされたクラスの要約
インターフェース org.springframework.web.ErrorResponse から継承されたネストクラス / インターフェース
ErrorResponse.Builderコンストラクターの概要
コンストラクターコンストラクター説明MethodNotAllowedException(StringSE method, CollectionSE<HttpMethod> supportedMethods) MethodNotAllowedException(HttpMethod method, CollectionSE<HttpMethod> supportedMethods) メソッドのサマリー
修飾子と型メソッド説明この URL で許可されている HTTP メソッドをドキュメント化する "Allow" ヘッダーを含む HttpHeaders を返します (利用可能な場合)。そうでない場合は空のインスタンスを返します。失敗したリクエストの HTTP メソッドを返します。使用すべきではありません。サポートされている HTTP メソッドのリストを返します。クラス org.springframework.web.server.ResponseStatusException から継承されたメソッド
getMessage, getReasonクラス org.springframework.web.ErrorResponseException から継承されたメソッド
getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setTypeクラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCauseクラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.web.ErrorResponse から継承されたメソッド
getDetailMessageArguments, getTitleMessageCode, updateAndGetBody
コンストラクターの詳細
MethodNotAllowedException
MethodNotAllowedException
public MethodNotAllowedException(StringSE method, @Nullable CollectionSE<HttpMethod> supportedMethods)
メソッドの詳細
getHeaders
この URL で許可されている HTTP メソッドをドキュメント化する "Allow" ヘッダーを含む HttpHeaders を返します (利用可能な場合)。そうでない場合は空のインスタンスを返します。- 次で指定:
- インターフェース
ErrorResponseのgetHeaders - オーバーライド:
- クラス
ResponseStatusExceptionのgetHeaders
getResponseHeaders
使用すべきではありません。6.0 現在、getHeaders()を推奨getHeaders()へのデリゲート。- オーバーライド:
- クラス
ResponseStatusExceptionのgetResponseHeaders - 導入:
- 5.1.13
getHttpMethod
失敗したリクエストの HTTP メソッドを返します。getSupportedMethods
サポートされている HTTP メソッドのリストを返します。
getHeaders()を推奨