KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bus > bindings > TestClientTransport


1 package org.objectweb.celtix.bus.bindings;
2
3 import java.io.IOException JavaDoc;
4 import java.util.concurrent.Executor JavaDoc;
5 import java.util.concurrent.Future JavaDoc;
6
7 import javax.wsdl.Port;
8 import javax.xml.ws.handler.MessageContext;
9
10 import org.objectweb.celtix.Bus;
11 import org.objectweb.celtix.bindings.ResponseCallback;
12 import org.objectweb.celtix.context.InputStreamMessageContext;
13 import org.objectweb.celtix.context.OutputStreamMessageContext;
14 import org.objectweb.celtix.transports.ClientTransport;
15 import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
16
17 public class TestClientTransport implements ClientTransport {
18
19     private InputStreamMessageContext istreamCtx;
20     
21     public TestClientTransport() {
22     }
23     
24     public TestClientTransport(Bus bus, EndpointReferenceType ref) {
25     }
26     
27     
28     public EndpointReferenceType getTargetEndpoint() {
29         return null;
30     }
31         
32     public EndpointReferenceType getDecoupledEndpoint() throws IOException JavaDoc {
33         return null;
34     }
35         
36     public Port getPort() {
37         return null;
38     }
39
40     public OutputStreamMessageContext createOutputStreamContext(MessageContext context)
41         throws IOException JavaDoc {
42         return new TestOutputStreamContext(null, context);
43     }
44
45     public void finalPrepareOutputStreamContext(OutputStreamMessageContext context) throws IOException JavaDoc {
46     }
47
48     public void invokeOneway(OutputStreamMessageContext context) throws IOException JavaDoc {
49         //nothing to do
50
}
51
52     public InputStreamMessageContext invoke(OutputStreamMessageContext context) throws IOException JavaDoc {
53         if (null != istreamCtx) {
54             return istreamCtx;
55         }
56         return context.getCorrespondingInputStreamContext();
57     }
58
59     public Future JavaDoc<InputStreamMessageContext> invokeAsync(OutputStreamMessageContext context, Executor JavaDoc ex)
60         throws IOException JavaDoc {
61         return null;
62     }
63     
64     public ResponseCallback getResponseCallback() {
65         return null;
66     }
67
68     public void shutdown() {
69         //nothing to do
70
}
71     
72     public void setInputStreamMessageContext(InputStreamMessageContext i) {
73         istreamCtx = i;
74     }
75 }
76
77
Popular Tags