01: package org.apache.axis2.client.async;
02:
03: import org.apache.axis2.context.MessageContext;
04:
05: /*
06: *
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19:
20: public interface AxisCallback {
21: /**
22: * This is called when we receive a message.
23: *
24: * @param msgContext the (response) MessageContext
25: */
26: void onMessage(MessageContext msgContext);
27:
28: /**
29: * This gets called when a fault message is received.
30: *
31: * @param msgContext the MessageContext containing the fault.
32: */
33: void onFault(MessageContext msgContext);
34:
35: /**
36: * This gets called ONLY when an internal processing exception occurs.
37: *
38: * @param e the Exception which caused the problem
39: */
40: void onError(Exception e);
41:
42: /**
43: * This is called at the end of the MEP no matter what happens, quite like a finally block.
44: */
45: void onComplete();
46: }
|