public class WSConsumer extends Object implements MessageProcessor, Initialisable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String |
SOAP_HEADERS_PROPERTY_PREFIX |
PHASE_NAME
Constructor and Description |
---|
WSConsumer() |
Modifier and Type | Method and Description |
---|---|
WSConsumerConfig |
getConfig() |
String |
getOperation() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isMtomEnabled() |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setConfig(WSConsumerConfig config) |
void |
setMtomEnabled(boolean mtomEnabled) |
void |
setMuleContext(MuleContext muleContext) |
void |
setOperation(String operation) |
public static final String SOAP_HEADERS_PROPERTY_PREFIX
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 MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public WSConsumerConfig getConfig()
public void setConfig(WSConsumerConfig config)
public String getOperation()
public void setOperation(String operation)
public boolean isMtomEnabled()
public void setMtomEnabled(boolean mtomEnabled)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.