クラスの使用
org.springframework.http.converter.HttpMessageNotWritableException
HttpMessageNotWritableException を使用するパッケージ
パッケージ
説明
HttpMessageConverter 抽象化を提供して、Java オブジェクトと HTTP 入出力メッセージ間で変換します。
Atom および RSS フィードを処理するための HttpMessageConverter 実装を提供します。
JSON を処理するための HttpMessageConverter 実装を提供します。
Google プロトコルバッファを処理するための HttpMessageConverter 実装を提供します。
XML を処理するための HttpMessageConverter 実装を提供します。
org.springframework.web.method.annotation パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。MVC コントローラーのサポートパッケージ。
org.springframework.http.converter 内の HttpMessageNotWritableException 使用
修飾子と型メソッド説明final voidAbstractGenericHttpMessageConverter.write(T t, @Nullable TypeSE type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) この実装は、AbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders, T, MediaType)を呼び出してデフォルトのヘッダーを設定し、次にAbstractGenericHttpMessageConverter.writeInternal(T, HttpOutputMessage)を呼び出します。final voidAbstractHttpMessageConverter.write(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) この実装は、AbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders, T, MediaType)を呼び出してデフォルトのヘッダーを設定し、次にAbstractHttpMessageConverter.writeInternal(T, HttpOutputMessage)を呼び出します。final voidAbstractSmartHttpMessageConverter.write(T t, ResolvableType type, @Nullable MediaType contentType, HttpOutputMessage outputMessage, @Nullable MapSE<StringSE, ObjectSE> hints) この実装は、AbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders, T, MediaType)を呼び出してデフォルトのヘッダーを設定し、次にAbstractSmartHttpMessageConverter.writeInternal(T, HttpOutputMessage)を呼び出します。voidBufferedImageHttpMessageConverter.write(BufferedImageSE image, @Nullable MediaType contentType, HttpOutputMessage outputMessage) voidFormHttpMessageConverter.write(MultiValueMap<StringSE, ?> map, @Nullable MediaType contentType, HttpOutputMessage outputMessage) voidGenericHttpMessageConverter.write(T t, @Nullable TypeSE type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) 指定されたオブジェクトを指定された出力メッセージに書き込みます。voidHttpMessageConverter.write(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) 指定されたオブジェクトを指定された出力メッセージに書き込みます。voidSmartHttpMessageConverter.write(T t, ResolvableType type, @Nullable MediaType contentType, HttpOutputMessage outputMessage, @Nullable MapSE<StringSE, ObjectSE> hints) 指定されたオブジェクトを指定された出力メッセージに書き込みます。default voidSmartHttpMessageConverter.write(T t, @Nullable MediaType contentType, HttpOutputMessage outputMessage) protected voidResourceHttpMessageConverter.writeContent(Resource resource, HttpOutputMessage outputMessage) protected abstract voidAbstractGenericHttpMessageConverter.writeInternal(T t, @Nullable TypeSE type, HttpOutputMessage outputMessage) 実際の本文を書き込む抽象テンプレートメソッド。protected voidAbstractGenericHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) protected abstract voidAbstractHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) 実際の本文を書き込む抽象テンプレートメソッド。protected voidAbstractJacksonHttpMessageConverter.writeInternal(ObjectSE object, ResolvableType resolvableType, HttpOutputMessage outputMessage, @Nullable MapSE<StringSE, ObjectSE> hints) protected abstract voidAbstractKotlinSerializationHttpMessageConverter.writeInternal(ObjectSE object, kotlinx.serialization.KSerializer<ObjectSE> serializer, T format, HttpOutputMessage outputMessage) 指定されたオブジェクトを、指定されたシリアライザーとフォーマットで出力メッセージに書き込みます。protected final voidAbstractKotlinSerializationHttpMessageConverter.writeInternal(ObjectSE object, ResolvableType type, HttpOutputMessage outputMessage, @Nullable MapSE<StringSE, ObjectSE> hints) protected abstract voidAbstractSmartHttpMessageConverter.writeInternal(T t, ResolvableType type, HttpOutputMessage outputMessage, @Nullable MapSE<StringSE, ObjectSE> hints) 実際の本文を書き込む抽象テンプレートメソッド。protected voidAbstractSmartHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) protected voidKotlinSerializationBinaryHttpMessageConverter.writeInternal(ObjectSE object, kotlinx.serialization.KSerializer<ObjectSE> serializer, T format, HttpOutputMessage outputMessage) protected voidKotlinSerializationStringHttpMessageConverter.writeInternal(ObjectSE object, kotlinx.serialization.KSerializer<ObjectSE> serializer, T format, HttpOutputMessage outputMessage) protected voidResourceHttpMessageConverter.writeInternal(Resource resource, HttpOutputMessage outputMessage) protected voidResourceRegionHttpMessageConverter.writeInternal(ObjectSE object, @Nullable TypeSE type, HttpOutputMessage outputMessage) org.springframework.http.converter.feed 内の HttpMessageNotWritableException 使用
修飾子と型メソッド説明protected voidAbstractWireFeedHttpMessageConverter.writeInternal(T wireFeed, HttpOutputMessage outputMessage) org.springframework.http.converter.json 内の HttpMessageNotWritableException 使用
修飾子と型メソッド説明protected voidAbstractJackson2HttpMessageConverter.writeInternal(ObjectSE object, @Nullable TypeSE type, HttpOutputMessage outputMessage) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protected final voidAbstractJsonHttpMessageConverter.writeInternal(ObjectSE object, @Nullable TypeSE type, HttpOutputMessage outputMessage) org.springframework.http.converter.protobuf 内の HttpMessageNotWritableException 使用
修飾子と型メソッド説明protected voidProtobufHttpMessageConverter.writeInternal(com.google.protobuf.Message message, HttpOutputMessage outputMessage) org.springframework.http.converter.xml 内の HttpMessageNotWritableException 使用
修飾子と型メソッド説明voidJaxb2CollectionHttpMessageConverter.write(T t, @Nullable TypeSE type, @Nullable MediaType contentType, HttpOutputMessage outputMessage) protected final voidAbstractXmlHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) protected voidSourceHttpMessageConverter.writeInternal(T t, HttpOutputMessage outputMessage) org.springframework.web.servlet.mvc.method.annotation 内の HttpMessageNotWritableException 使用
型 HttpMessageNotWritableException のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMessageNotWritableExceptionの処理をカスタマイズします。修飾子と型メソッド説明voidRequestResponseBodyMethodProcessor.handleReturnValue(@Nullable ObjectSE returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) protected <T> voidAbstractMessageConverterMethodProcessor.writeWithMessageConverters(@Nullable T value, MethodParameter returnType, ServletServerHttpRequest inputMessage, ServletServerHttpResponse outputMessage) 指定された戻り値の型を指定された出力メッセージに書き込みます。protected <T> voidAbstractMessageConverterMethodProcessor.writeWithMessageConverters(T value, MethodParameter returnType, NativeWebRequest webRequest) 指定された戻り値を指定された Web リクエストに書き込みます。org.springframework.web.servlet.mvc.support 内の HttpMessageNotWritableException 使用
型 HttpMessageNotWritableException のパラメーターを持つ org.springframework.web.servlet.mvc.support のメソッド修飾子と型メソッド説明protected ModelAndViewDefaultHandlerExceptionResolver.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable ObjectSE handler) メッセージコンバーターが HTTP レスポンスに書き込めない場合に対処します。