public class DataRecordResponse extends HttpResponse
HttpResponse.StatusResult.ClientError, Result.Error, Result.MultiStatus, Result.NotFound, Result.Success| コンストラクタと説明 |
|---|
DataRecordResponse(String basePathName,
String fileName)
コンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
write(Map<?> record)
メッセージボディに1レコード分のデータを書き込む。
|
void |
write(String recordType,
Map<?> record)
データレイアウト(レコードタイプ)を指定して、メッセージボディに1レコード分のデータを書き込む。
|
addCookie, getBodyStream, getBodyString, getContentDisposition, getContentLength, getContentPath, getContentType, getCookie, getHeader, getHeaderMap, getHttpVersion, getLocation, getMessage, getReasonPhrase, getStatusCode, isBodyEmpty, setBodyStream, setContentDisposition, setContentDisposition, setContentPath, setContentPath, setContentType, setCookie, setHeader, setLocation, setStatusCode, write, write, write@Published public DataRecordResponse(String basePathName, String fileName)
DataRecordFormatterを設定する。basePathName - フォーマット定義ファイルのベースパス論理名fileName - フォーマット定義ファイルのファイル名@Published public void write(Map<?> record)
DataRecordFormatter.writeRecord(Map)を参照すること。record - 1レコード分のデータRuntimeException - 出力ストリームの書き込みに失敗した場合InvalidDataFormatException - 書き込むデータの内容がフォーマット定義に違反している場合。DataRecordFormatter.writeRecord(Map)@Published public void write(String recordType, Map<?> record)
recordType - 出力時に使用するデータレイアウトrecord - 1レコード分のデータRuntimeException - 出力ストリームの書き込みに失敗した場合InvalidDataFormatException - 書き込むデータの内容がフォーマット定義に違反している場合。DataRecordFormatter.writeRecord(String, Map)