01: package org.objectweb.celtix.jbi.transport;
02:
03: import java.io.InputStream;
04:
05: import javax.xml.ws.handler.MessageContext;
06:
07: import org.objectweb.celtix.context.InputStreamMessageContext;
08: import org.objectweb.celtix.context.MessageContextWrapper;
09:
10: public class JBIInputStreamMessageContext extends MessageContextWrapper
11: implements InputStreamMessageContext {
12:
13: private InputStream inputStream;
14: private boolean isFault;
15:
16: public JBIInputStreamMessageContext(MessageContext wrapped,
17: InputStream in) {
18: super (wrapped);
19: inputStream = in;
20: }
21:
22: public InputStream getInputStream() {
23: return inputStream;
24: }
25:
26: public void setInputStream(InputStream in) {
27: inputStream = in;
28: }
29:
30: public void setFault(boolean fault) {
31: isFault = fault;
32: }
33:
34: public boolean isFault() {
35: return isFault;
36: }
37: }
|