public class SecurityFilterMessageProcessor extends AbstractInterceptingMessageProcessor implements EndpointAware, Initialisable, NonBlockingSupported
SecurityFilter
.
If unauthorised the flow is stopped and therefore the
message is not send or dispatched by the transport. When unauthorised the request
message is returned as the response.logger, muleContext, next, notificationHandler
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
SecurityFilterMessageProcessor()
Deprecated.
Use SecurityFilterMessageProcessor(SecurityFilter filter) instead
|
SecurityFilterMessageProcessor(SecurityFilter filter) |
Modifier and Type | Method and Description |
---|---|
SecurityFilter |
getFilter() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setEndpoint(ImmutableEndpoint ep) |
void |
setFilter(SecurityFilter filter) |
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, setMuleContext, toString
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setListener
public SecurityFilterMessageProcessor()
public SecurityFilterMessageProcessor(SecurityFilter filter)
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 SecurityFilter getFilter()
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
public void setFilter(SecurityFilter filter)
public void setEndpoint(ImmutableEndpoint ep)
setEndpoint
in interface EndpointAware
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.