@Published(tag="architect") public abstract class JacksonBodyConverterSupport extends BodyConverterSupport
BodyConverterの実装をサポートするクラス。
 
 このConverterは、メディアタイプがapplication/jsonで始まっている場合に
 リクエスト/レスポンスを変換する。(大文字、小文字は問わない)
BodyConverterSupport.ContentType| Constructor and Description | 
|---|
JacksonBodyConverterSupport()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.Object | 
convertRequest(HttpRequest request,
              ExecutionContext context)
リクエストを変換する。 
 | 
protected HttpResponse | 
convertResponse(java.lang.Object response,
               ExecutionContext context)
レスポンスを変換する。 
 | 
boolean | 
isConvertible(java.lang.String mediaType)
指定されたメディアタイプを変換できるかどうか。 
 | 
protected abstract java.lang.Object | 
readValue(java.io.Reader src,
         java.lang.Class<?> valueType)
JSON文字列から指定された型のオブジェクトに値を読み込む。 
 | 
protected abstract java.lang.String | 
writeValueAsString(java.lang.Object value)
指定されたオブジェクトからJSON文字列に書き込む。 
 | 
getContentType, read, setDefaultEncoding, writeprotected java.lang.Object convertRequest(HttpRequest request, ExecutionContext context)
BodyConverterSupportconvertRequest in class BodyConverterSupportrequest - リクエストcontext - 実行コンテキストprotected abstract java.lang.Object readValue(java.io.Reader src,
                                              java.lang.Class<?> valueType)
                                       throws java.io.IOException
src - JSON文字列のソースvalueType - 値の型java.io.IOException - 読み込みに失敗した場合protected HttpResponse convertResponse(java.lang.Object response, ExecutionContext context)
BodyConverterSupportconvertResponse in class BodyConverterSupportresponse - レスポンスオブジェクトcontext - 実行コンテキストprotected abstract java.lang.String writeValueAsString(java.lang.Object value)
                                                throws java.io.IOException
value - オブジェクトjava.io.IOException - 書き込みに失敗した場合public boolean isConvertible(java.lang.String mediaType)
BodyConvertermediaType - メディアタイプtrue