2

我已经使用 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;
    }
}

它用于写操作。是否可以更改阀门内inputStreamContextPipelineContext中的目录和文件名?

InputStreamContext类中有getMessageOriginReference方法,它返回一个包含目录和文件名的字符串。还有setMessageOriginReference方法,它对我不起作用。

4

0 回答 0