- All Implemented Interfaces:
- Function<org.reactivestreams.Publisher<Event>,org.reactivestreams.Publisher<Event>>, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.meta.AnnotatedObject, Processor, ReactiveProcessor
public class StaticResourceMessageProcessor
extends AbstractAnnotatedObject
implements Processor, org.mule.runtime.api.lifecycle.Initialisable
A MessageProcessor that can be used by HTTP endpoints to serve static files from a directory on the filesystem. This processor
allows the user to specify a resourceBase which refers to the local directory from where files will be served from.
Additionally, a default file can be specificed for URLs where no file is set