01: package org.objectweb.celtix.jbi.transport;
02:
03: import java.io.ByteArrayOutputStream;
04: import java.io.IOException;
05: import java.io.OutputStream;
06:
07: import javax.xml.ws.handler.MessageContext;
08:
09: import org.objectweb.celtix.context.InputStreamMessageContext;
10: import org.objectweb.celtix.context.MessageContextWrapper;
11: import org.objectweb.celtix.context.OutputStreamMessageContext;
12:
13: public class JBIOutputStreamMessageContext extends
14: MessageContextWrapper implements OutputStreamMessageContext {
15:
16: private OutputStream out = new ByteArrayOutputStream();
17: private boolean fault;
18: private boolean oneway;
19:
20: public JBIOutputStreamMessageContext(MessageContext wrapped) {
21: super (wrapped);
22: }
23:
24: public OutputStream getOutputStream() {
25: return out;
26: }
27:
28: public void setOutputStream(OutputStream os) {
29: out = os;
30: }
31:
32: public void setFault(boolean isFault) {
33: fault = isFault;
34: }
35:
36: public boolean isFault() {
37: return fault;
38: }
39:
40: public void setOneWay(boolean isOneWay) {
41: oneway = isOneWay;
42: }
43:
44: public boolean isOneWay() {
45: return oneway;
46: }
47:
48: public InputStreamMessageContext getCorrespondingInputStreamContext()
49: throws IOException {
50: return null;
51: }
52: }
|