|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.client.remoting.RemoteDispatcherComponent
public class RemoteDispatcherComponent
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
Field Summary | |
---|---|
protected String |
encoding
|
protected InboundEndpoint |
inboundEndpoint
|
protected static Log |
logger
logger used by this class |
static String |
MANAGER_COMPONENT_NAME
|
protected MuleContext |
muleContext
|
protected int |
synchronousEventTimeout
|
protected WireFormat |
wireFormat
Use Serialization by default |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
RemoteDispatcherComponent(InboundEndpoint inboundEndpoint,
WireFormat wireFormat,
String encoding,
int synchronousEventTimeout)
|
Method Summary | |
---|---|
protected ServerHandshake |
doHandshake(MuleEventContext context)
|
String |
getEncoding()
|
static Service |
getSerivce(InboundEndpoint endpoint,
WireFormat wireFormat,
String encoding,
int eventTimeout,
MuleContext muleContext)
|
int |
getSynchronousEventTimeout()
|
WireFormat |
getWireFormat()
|
protected Object |
handleException(MuleMessage result,
Throwable e)
Wraps an exception into a MuleMessage with an Exception payload and returns the Xml representation of it |
void |
initialise()
Method used to perform any initialisation work. |
protected Object |
invokeAction(RemoteDispatcherNotification action,
MuleEventContext context)
|
Object |
onCall(MuleEventContext context)
Passes the event to the listener |
protected Object |
receiveAction(RemoteDispatcherNotification action,
MuleEventContext context)
|
protected Object |
sendAction(RemoteDispatcherNotification action,
MuleEventContext context)
|
void |
setEncoding(String encoding)
|
void |
setSynchronousEventTimeout(int synchronousEventTimeout)
|
void |
setWireFormat(WireFormat wireFormat)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public RemoteDispatcherComponent(InboundEndpoint inboundEndpoint, WireFormat wireFormat, String encoding, int synchronousEventTimeout)
Method Detail |
---|
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 shutdown
RecoverableException
- 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 process
LifecycleAdapter
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 thrown
public WireFormat getWireFormat()
public void setWireFormat(WireFormat wireFormat)
public String getEncoding()
public void setEncoding(String encoding)
public int getSynchronousEventTimeout()
public void setSynchronousEventTimeout(int synchronousEventTimeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |