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 voidclear()Discard any pending messages.protected org.apache.axis2.description.InOnlyAxisOperationcreateOperation()Create an operation appropriate for the message exchange pattern implemented by the test endpoint.protected voidonTransportError(Throwable ex)Process a transport error.IncomingMessage<AxisMessage>waitForMessage(int timeout)
-
-
-
Method Detail
-
createOperation
protected org.apache.axis2.description.InOnlyAxisOperation createOperation()
Description copied from class:AxisTestEndpointCreate an operation appropriate for the message exchange pattern implemented by the test endpoint. The operation returned should have aMessageReceiverset.- Specified by:
createOperationin classAxisTestEndpoint- Returns:
- the operation
-
onTransportError
protected void onTransportError(Throwable ex)
Description copied from class:AxisTestEndpointProcess a transport error. Note that this method will only be called if the underlying transport supports reporting of transport errors.- Specified by:
onTransportErrorin classAxisTestEndpoint- Parameters:
ex- the exception describing the transport error
-
clear
public void clear() throws ExceptionDescription copied from interface:AsyncEndpointDiscard any pending messages.- Specified by:
clearin interfaceAsyncEndpoint<AxisMessage>- Throws:
Exception
-
waitForMessage
public IncomingMessage<AxisMessage> waitForMessage(int timeout) throws Throwable
- Specified by:
waitForMessagein interfaceAsyncEndpoint<AxisMessage>- Throws:
Throwable
-
-