1 16 17 package org.apache.axis.transport.local; 18 19 import org.apache.axis.AxisEngine; 20 import org.apache.axis.MessageContext; 21 import org.apache.axis.client.Call; 22 import org.apache.axis.client.Transport; 23 import org.apache.axis.server.AxisServer; 24 25 40 public class LocalTransport extends Transport 41 { 42 public static final String LOCAL_SERVER = "LocalTransport.AxisServer"; 43 public static final String REMOTE_SERVICE = "LocalTransport.RemoteService"; 44 45 private AxisServer server; 46 47 48 private String remoteServiceName; 49 50 54 public LocalTransport() 55 { 56 transportName = "local"; 57 } 58 59 65 public LocalTransport(AxisServer server) 66 { 67 transportName = "local"; 68 this.server = server; 69 } 70 71 78 public void setRemoteService(String remoteServiceName) { 79 this.remoteServiceName = remoteServiceName; 80 } 81 82 88 public void setupMessageContextImpl(MessageContext mc, 89 Call call, 90 AxisEngine engine) 91 { 92 if (server != null) 93 mc.setProperty(LOCAL_SERVER, server); 94 if (remoteServiceName != null) 95 mc.setProperty(REMOTE_SERVICE, remoteServiceName); 96 } 97 } 98 99 | Popular Tags |