1 16 package org.apache.axis.ime; 17 18 import org.apache.axis.AxisFault; 19 import org.apache.axis.MessageContext; 20 21 import java.util.Hashtable ; 22 23 31 public interface MessageExchange { 32 33 42 public MessageExchangeCorrelator send( 43 MessageContext context) 44 throws AxisFault; 45 46 56 public MessageExchangeCorrelator send( 57 MessageContext context, 58 MessageExchangeEventListener listener) 59 throws AxisFault; 60 61 67 public MessageContext receive() 68 throws AxisFault; 69 70 78 public MessageContext receive( 79 long timeout) 80 throws AxisFault; 81 82 90 public MessageContext receive( 91 MessageExchangeCorrelator correlator) 92 throws AxisFault; 93 94 103 public MessageContext receive( 104 MessageExchangeCorrelator correlator, 105 long timeout) 106 throws AxisFault; 107 108 114 public void receive( 115 MessageExchangeEventListener listener) 116 throws AxisFault; 117 118 125 public void receive( 126 MessageExchangeCorrelator correlator, 127 MessageExchangeEventListener listener) 128 throws AxisFault; 129 130 136 public MessageContext sendAndReceive( 137 MessageContext context) 138 throws AxisFault; 139 140 147 public MessageContext sendAndReceive( 148 MessageContext context, 149 long timeout) 150 throws AxisFault; 151 152 public void setMessageExchangeEventListener( 153 MessageExchangeEventListener listener); 154 155 public MessageExchangeEventListener getMessageExchangeEventListener(); 156 157 161 public void setOption( 162 String OptionId, 163 Object OptionValue); 164 165 169 public Object getOption( 170 String OptionId); 171 172 177 public Object getOption( 178 String OptionId, 179 Object defaultValue); 180 181 184 public Hashtable getOptions(); 185 186 189 public void setOptions(Hashtable options); 190 191 public void clearOptions(); 192 193 } 194 | Popular Tags |