1 package org.objectweb.celtix.bus.bindings; 2 3 import java.io.IOException ; 4 import java.util.concurrent.Executor ; 5 import java.util.concurrent.Future ; 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 { 33 return null; 34 } 35 36 public Port getPort() { 37 return null; 38 } 39 40 public OutputStreamMessageContext createOutputStreamContext(MessageContext context) 41 throws IOException { 42 return new TestOutputStreamContext(null, context); 43 } 44 45 public void finalPrepareOutputStreamContext(OutputStreamMessageContext context) throws IOException { 46 } 47 48 public void invokeOneway(OutputStreamMessageContext context) throws IOException { 49 } 51 52 public InputStreamMessageContext invoke(OutputStreamMessageContext context) throws IOException { 53 if (null != istreamCtx) { 54 return istreamCtx; 55 } 56 return context.getCorrespondingInputStreamContext(); 57 } 58 59 public Future <InputStreamMessageContext> invokeAsync(OutputStreamMessageContext context, Executor ex) 60 throws IOException { 61 return null; 62 } 63 64 public ResponseCallback getResponseCallback() { 65 return null; 66 } 67 68 public void shutdown() { 69 } 71 72 public void setInputStreamMessageContext(InputStreamMessageContext i) { 73 istreamCtx = i; 74 } 75 } 76 77 | Popular Tags |