public class

MClient

extends Object
implements MuleContextAware
java.lang.Object
   ↳ org.mule.munit.MClient
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Module used to call mule transports.

Summary

Fields
private MuleContext muleContext
Public Constructors
MClient()
Public Methods
Object call(String path, Map<StringObject> parameters, Object payload, List<NestedProcessor> responseProcessing)

Do a real call to your inbound flows.

void dispatch(String path, Map<StringObject> parameters, Object payload)

Dispatches an event asynchronously to a endpointUri via a Mule server.

Object request(String url, Long timeout, List<NestedProcessor> responseProcessing)

Do a real call to your inbound flows.

void setMuleContext(MuleContext context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.context.MuleContextAware

Fields

private MuleContext muleContext

Public Constructors

public MClient ()

Public Methods

public Object call (String path, Map<StringObject> parameters, Object payload, List<NestedProcessor> responseProcessing)

Do a real call to your inbound flows.

Parameters
path Path to call the transport, example: http://localhost:8081/tests
parameters Connection parameters
payload Message payload
responseProcessing Add any processing of the client response
Returns
  • Response call
Throws
Exception

public void dispatch (String path, Map<StringObject> parameters, Object payload)

Dispatches an event asynchronously to a endpointUri via a Mule server.

Parameters
path Path to call the transport, example: http://localhost:8081/tests
parameters Connection parameters
payload Message payload
Returns
  • Response call
Throws
Exception

public Object request (String url, Long timeout, List<NestedProcessor> responseProcessing)

Do a real call to your inbound flows.

Parameters
url Path to call the transport, example: http://localhost:8081/tests
timeout Time out processing
responseProcessing Add any processing of the client response
Returns
  • Response call
Throws
Exception

public void setMuleContext (MuleContext context)

Parameters
context