Class AxisAsyncEndpoint
- java.lang.Object
-
- org.apache.axis2.transport.testkit.axis2.endpoint.AxisTestEndpoint
-
- org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint
-
- All Implemented Interfaces:
AsyncEndpoint<AxisMessage>
public class AxisAsyncEndpoint extends AxisTestEndpoint implements AsyncEndpoint<AxisMessage>
-
-
Constructor Summary
Constructors Constructor Description AxisAsyncEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Discard any pending messages.protected InOnlyAxisOperation
createOperation()
Create an operation appropriate for the message exchange pattern implemented by the test endpoint.protected void
onTransportError(Throwable ex)
Process a transport error.IncomingMessage<AxisMessage>
waitForMessage(int timeout)
-
-
-
Method Detail
-
createOperation
protected InOnlyAxisOperation createOperation()
Description copied from class:AxisTestEndpoint
Create an operation appropriate for the message exchange pattern implemented by the test endpoint. The operation returned should have aMessageReceiver
set.- Specified by:
createOperation
in classAxisTestEndpoint
- Returns:
- the operation
-
onTransportError
protected void onTransportError(Throwable ex)
Description copied from class:AxisTestEndpoint
Process a transport error. Note that this method will only be called if the underlying transport supports reporting of transport errors.- Specified by:
onTransportError
in classAxisTestEndpoint
- Parameters:
ex
- the exception describing the transport error
-
clear
public void clear() throws Exception
Description copied from interface:AsyncEndpoint
Discard any pending messages.- Specified by:
clear
in interfaceAsyncEndpoint<AxisMessage>
- Throws:
Exception
-
waitForMessage
public IncomingMessage<AxisMessage> waitForMessage(int timeout) throws Throwable
- Specified by:
waitForMessage
in interfaceAsyncEndpoint<AxisMessage>
- Throws:
Throwable
-
-