@Deprecated public class RemoteDispatcherComponent extends Object implements Callable, Initialisable
RemoteDispatcherComponent
is a MuleManager interal server component
responsible for receiving remote requests and dispatching them locally. This
allows developer to tunnel requests through http ssl to a Mule instance behind a
firewall
Deprecated as of 3.6.0Modifier and Type | Field and Description |
---|---|
protected String |
encoding
Deprecated.
|
protected InboundEndpoint |
inboundEndpoint
Deprecated.
|
protected static Log |
logger
Deprecated.
logger used by this class
|
static String |
MANAGER_COMPONENT_NAME
Deprecated.
|
protected MuleContext |
muleContext
Deprecated.
|
protected int |
synchronousEventTimeout
Deprecated.
|
protected WireFormat |
wireFormat
Deprecated.
Use Serialization by default
|
PHASE_NAME
Constructor and Description |
---|
RemoteDispatcherComponent(InboundEndpoint inboundEndpoint,
WireFormat wireFormat,
String encoding,
int synchronousEventTimeout)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ServerHandshake |
doHandshake(MuleEventContext context)
Deprecated.
|
String |
getEncoding()
Deprecated.
|
static Service |
getSerivce(InboundEndpoint endpoint,
WireFormat wireFormat,
String encoding,
int eventTimeout,
MuleContext muleContext)
Deprecated.
|
int |
getSynchronousEventTimeout()
Deprecated.
|
WireFormat |
getWireFormat()
Deprecated.
|
protected Object |
handleException(MuleMessage result,
Throwable e)
Deprecated.
Wraps an exception into a MuleMessage with an Exception payload and returns
the Xml representation of it
|
void |
initialise()
Deprecated.
Method used to perform any initialisation work.
|
protected Object |
invokeAction(RemoteDispatcherNotification action,
MuleEventContext context)
Deprecated.
|
Object |
onCall(MuleEventContext context)
Deprecated.
Passes the event to the listener
|
protected Object |
receiveAction(RemoteDispatcherNotification action,
MuleEventContext context)
Deprecated.
|
protected Object |
sendAction(RemoteDispatcherNotification action,
MuleEventContext context)
Deprecated.
|
void |
setEncoding(String encoding)
Deprecated.
|
void |
setSynchronousEventTimeout(int synchronousEventTimeout)
Deprecated.
|
void |
setWireFormat(WireFormat wireFormat)
Deprecated.
|
protected static final Log logger
public static final String MANAGER_COMPONENT_NAME
protected WireFormat wireFormat
protected String encoding
protected int synchronousEventTimeout
protected InboundEndpoint inboundEndpoint
protected MuleContext muleContext
public RemoteDispatcherComponent(InboundEndpoint inboundEndpoint, WireFormat wireFormat, String encoding, int synchronousEventTimeout)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic Object onCall(MuleEventContext context) throws Exception
Callable
onCall
in interface Callable
context
- the context of the current event being processLifecycleAdapter
for the service receives this
object it will first see if the Object is an MuleMessage
if not and the Object is not null a new message will be created using
the returned object as the payload. This new event will then get
published via the configured outbound router if-
setStopFurtherProcessing(true)
wasn't called
on the event context event.Exception
- if the event fails to process properly. If exceptions aren't
handled by the implementation they will be handled by the
exceptionListener associated with the serviceprotected ServerHandshake doHandshake(MuleEventContext context) throws TransformerException
TransformerException
protected Object invokeAction(RemoteDispatcherNotification action, MuleEventContext context) throws MuleException
MuleException
protected Object sendAction(RemoteDispatcherNotification action, MuleEventContext context) throws MuleException
MuleException
protected Object receiveAction(RemoteDispatcherNotification action, MuleEventContext context) throws MuleException
MuleException
public static Service getSerivce(InboundEndpoint endpoint, WireFormat wireFormat, String encoding, int eventTimeout, MuleContext muleContext) throws MuleException
MuleException
protected Object handleException(MuleMessage result, Throwable e)
result
- the result of the invocation or null if the exception occurred
before or during the invocatione
- the Exception thrownpublic WireFormat getWireFormat()
public void setWireFormat(WireFormat wireFormat)
public String getEncoding()
public void setEncoding(String encoding)
public int getSynchronousEventTimeout()
public void setSynchronousEventTimeout(int synchronousEventTimeout)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.