クラス 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, updateAndGetBody- クラス 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, getTypeMessageCode
- コンストラクターの詳細- MethodNotAllowedException
- MethodNotAllowedExceptionpublic 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()を推奨