1 55 56 package org.jboss.axis.transport.local; 57 58 import org.jboss.axis.AxisEngine; 59 import org.jboss.axis.MessageContext; 60 import org.jboss.axis.client.Call; 61 import org.jboss.axis.client.Transport; 62 import org.jboss.axis.server.AxisServer; 63 64 79 public class LocalTransport extends Transport 80 { 81 public static final String LOCAL_SERVER = "LocalTransport.AxisServer"; 82 public static final String REMOTE_SERVICE = "LocalTransport.RemoteService"; 83 84 private AxisServer server; 85 86 89 private String remoteServiceName; 90 91 95 public LocalTransport() 96 { 97 transportName = "local"; 98 } 99 100 107 public LocalTransport(AxisServer server) 108 { 109 transportName = "local"; 110 this.server = server; 111 } 112 113 120 public void setRemoteService(String remoteServiceName) 121 { 122 this.remoteServiceName = remoteServiceName; 123 } 124 125 132 public void setupMessageContextImpl(MessageContext mc, 133 Call call, 134 AxisEngine engine) 135 { 136 if (server != null) 137 mc.setProperty(LOCAL_SERVER, server); 138 if (remoteServiceName != null) 139 mc.setProperty(REMOTE_SERVICE, remoteServiceName); 140 } 141 } 142 143 | Popular Tags |