|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.jca.DefaultMuleConnection
public class DefaultMuleConnection
MuleConnection
TODO
Constructor Summary | |
---|---|
DefaultMuleConnection(MuleManagedConnection managedConnection,
MuleContext muleContext,
MuleCredentials credentials)
|
Method Summary | |
---|---|
void |
associateConnection(MuleManagedConnection newMc)
Associates connection handle with new managed connection. |
void |
close()
Closes the connection. |
void |
dispatch(String url,
Object payload,
Map messageProperties)
Dispatches an event asynchronously to a endpointUri via a mule server. |
protected MuleEvent |
getEvent(MuleMessage message,
OutboundEndpoint endpoint)
Packages a mule event for the current request |
MuleManagedConnection |
getManagedConnection()
Retrieves a ManagedConnection. |
protected OutboundEndpoint |
getOutboundEndpoint(String uri,
MessageExchangePattern exchangePattern)
|
MuleMessage |
request(String url,
long timeout)
Will receive an event from an endpointUri determined by the url |
MuleMessage |
send(String url,
Object payload,
Map messageProperties)
Sends an object (payload) synchronous to the given url and returns a MuleMessage response back. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMuleConnection(MuleManagedConnection managedConnection, MuleContext muleContext, MuleCredentials credentials)
Method Detail |
---|
public void dispatch(String url, Object payload, Map messageProperties) throws MuleException
dispatch
in interface MuleConnection
url
- the Mule url used to determine the destination and transport of the
messagepayload
- the object that is the payload of the eventmessageProperties
- any properties to be associated with the payload. In
the case of Jms you could set the JMSReplyTo property in these
properties.
MuleException
public MuleMessage send(String url, Object payload, Map messageProperties) throws MuleException
send
in interface MuleConnection
url
- the Mule url used to determine the destination and transport of the
messagepayload
- the object that is the payload of the eventmessageProperties
- any properties to be associated with the payload. In
the case of Jms you could set the JMSReplyTo property in these
properties.
MuleException
public MuleMessage request(String url, long timeout) throws MuleException
request
in interface MuleConnection
url
- the Mule url used to determine the destination and transport of the
messagetimeout
- how long to block waiting to receive the event, if set to 0 the
receive will not wait at all and if set to -1 the receive will wait
forever
MuleException
protected OutboundEndpoint getOutboundEndpoint(String uri, MessageExchangePattern exchangePattern) throws MuleException
MuleException
protected MuleEvent getEvent(MuleMessage message, OutboundEndpoint endpoint) throws MuleException
MuleException
public MuleManagedConnection getManagedConnection()
getManagedConnection
in interface MuleConnection
public void close() throws ResourceException
close
in interface MuleConnection
ResourceException
public void associateConnection(MuleManagedConnection newMc) throws ResourceException
associateConnection
in interface MuleConnection
newMc
- new managed connection
ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |