@Published(tag="architect") public class JaxbBodyConverter extends BodyConverterSupport
BodyConverter実装クラス。| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
configure(Marshaller marshaller)
Marshallerに対するオプション設定を行う。 |
protected void |
configure(Unmarshaller unmarshaller)
Unmarshallerに対するオプション設定を行う。 |
protected Object |
convertRequest(HttpRequest request,
ExecutionContext context)
リクエストを変換する。
|
protected HttpResponse |
convertResponse(Object response,
ExecutionContext context)
レスポンスを変換する。
|
boolean |
isConvertible(String mediaType) |
getContentType, read, setDefaultEncoding, writeprotected Object convertRequest(HttpRequest request, ExecutionContext context)
BodyConverterSupportconvertRequest クラス内 BodyConverterSupportrequest - リクエストcontext - 実行コンテキストprotected HttpResponse convertResponse(Object response, ExecutionContext context)
BodyConverterSupportconvertResponse クラス内 BodyConverterSupportresponse - レスポンスオブジェクトcontext - 実行コンテキストpublic boolean isConvertible(String mediaType)
protected void configure(Marshaller marshaller)
Marshallerに対するオプション設定を行う。
このクラスではデフォルトで以下の設定でXMLの生成を行う。
設定を変更したい場合はサブクラス側で行う必要がある。
javax.ws.rs.Producesに設定された文字コードを使用する。marshaller - MarshallerJAXBException - オプション設定に失敗した場合protected void configure(Unmarshaller unmarshaller)
Unmarshallerに対するオプション設定を行う。
このクラスでは特に何も行わないので、オプション設定はサブクラス側で行う必要がある。unmarshaller - UnmarshallerJAXBException - オプション設定に失敗した場合