SOA Suite 11g ファイル アダプタを使用してパイプライン バルブを実装しました。このようなJavaコードを取得しました
import oracle.tip.pc.services.pipeline.*;
public class MyValve extends AbstractValve {
public InputStreamContext execute(InputStreamContext context) throws PipelineException, IOException {
InputStream stream;
... // encode contents and write it to stream
context.setInputStream(stream);
return context;
}
}
書き込み操作に使用されます。バルブ内のinputStreamContextまたはPipelineContextのディレクトリとファイル名を変更することは可能ですか?
InputStreamContextクラスにはgetMessageOriginReferenceメソッドがあり、ディレクトリとファイル名を含む文字列を返します。そして、私にとってはうまくいかないsetMessageOriginReferenceメソッド。