public class StaticResourceMessageProcessor extends Object implements MessageProcessor, Initialisable
Modifier and Type | Field and Description |
---|---|
static String |
ANY_PATH |
static String |
DEFAULT_MIME_TYPE |
static String |
ROOT_PATH |
PHASE_NAME
Constructor and Description |
---|
StaticResourceMessageProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFile() |
String |
getResourceBase() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setDefaultFile(String defaultFile) |
void |
setResourceBase(String resourceBase) |
public static final String DEFAULT_MIME_TYPE
public static final String ANY_PATH
public static final String ROOT_PATH
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 String getResourceBase()
public void setResourceBase(String resourceBase)
public String getDefaultFile()
public void setDefaultFile(String defaultFile)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.