LocalTransportpublic class LocalTransport extends org.apache.axis.client.Transport A Transport which will cause an invocation via a "local" AxisServer.
Serialization will still be tested, as the requests and responses
pass through a String conversion (see LocalSender.java) - this is
primarily for testing and debugging.
This transport will either allow the LocalSender to create its own
AxisServer, or if you have one you've configured and wish to use,
you may pass it in to the constructor here. |
Fields Summary |
---|
public static final String | LOCAL_SERVER | public static final String | REMOTE_SERVICE | private org.apache.axis.server.AxisServer | server | private String | remoteServiceNameThe name of a particular remote service to invoke. |
Constructors Summary |
---|
public LocalTransport()No-arg constructor, which will use an AxisServer constructed
by the LocalSender (see LocalSender.java).
transportName = "local";
| public LocalTransport(org.apache.axis.server.AxisServer server)Use this constructor if you have a particular server kicking
around (perhaps which you've already deployed useful stuff into)
which you'd like to use.
transportName = "local";
this.server = server;
|
Methods Summary |
---|
public void | setRemoteService(java.lang.String remoteServiceName)Use this to indicate a particular "remote" service which should be
invoked on the target AxisServer. This can be used programatically
in place of a service-specific URL.
this.remoteServiceName = remoteServiceName;
| public void | setupMessageContextImpl(org.apache.axis.MessageContext mc, org.apache.axis.client.Call call, org.apache.axis.AxisEngine engine)Set up any transport-specific derived properties in the message context.
if (server != null)
mc.setProperty(LOCAL_SERVER, server);
if (remoteServiceName != null)
mc.setProperty(REMOTE_SERVICE, remoteServiceName);
|
|