1 16 17 package org.apache.axis.client.async; 18 19 import org.apache.axis.client.Call; 20 21 import javax.xml.namespace.QName ; 22 23 28 public class AsyncCall { 29 30 33 private Call call = null; 34 35 38 private IAsyncCallback callback = null; 39 40 45 public AsyncCall(Call call) { 46 this(call, null); 47 } 48 49 55 public AsyncCall(Call call, IAsyncCallback callback) { 56 this.call = call; 57 this.callback = callback; 58 } 59 60 65 public IAsyncCallback getCallback() { 66 return callback; 67 } 68 69 74 public void setCallback(IAsyncCallback callback) { 75 this.callback = callback; 76 } 77 78 84 public IAsyncResult invoke(Object [] inputParams) { 85 return new AsyncResult(this, null, inputParams); 86 } 87 88 95 public IAsyncResult invoke(QName qName, Object [] inputParams) { 96 return new AsyncResult(this, qName, inputParams); 97 } 98 99 104 public Call getCall() { 105 return call; 106 } 107 } 108 | Popular Tags |