public class DefaultInterceptionEvent extends Object implements org.mule.runtime.api.interception.InterceptionEvent
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERCEPTION_RESOLVED_CONTEXT |
static String |
INTERCEPTION_RESOLVED_PARAMS |
| Constructor and Description |
|---|
DefaultInterceptionEvent(Event interceptedInput) |
| Modifier and Type | Method and Description |
|---|---|
DefaultInterceptionEvent |
addVariable(String key,
Object value) |
DefaultInterceptionEvent |
addVariable(String key,
Object value,
org.mule.runtime.api.metadata.DataType mediaType) |
EventContext |
getContext() |
Optional<org.mule.runtime.api.message.Error> |
getError() |
Event |
getInterceptionResult() |
org.mule.runtime.api.message.Message |
getMessage() |
<T> org.mule.runtime.api.metadata.TypedValue<T> |
getVariable(String key) |
Set<String> |
getVariableNames() |
DefaultInterceptionEvent |
message(org.mule.runtime.api.message.Message message) |
DefaultInterceptionEvent |
removeVariable(String key) |
Event |
resolve()
Updates the state of this object if needed, overriding the
interceptedInput with the result built from
interceptedOutput and resetting . |
DefaultInterceptionEvent |
setError(org.mule.runtime.api.message.ErrorType errorType,
Throwable cause) |
DefaultInterceptionEvent |
variables(Map<String,Object> variables) |
public static final String INTERCEPTION_RESOLVED_PARAMS
public static final String INTERCEPTION_RESOLVED_CONTEXT
public DefaultInterceptionEvent(Event interceptedInput)
public org.mule.runtime.api.message.Message getMessage()
getMessage in interface org.mule.runtime.api.interception.InterceptionEventpublic <T> org.mule.runtime.api.metadata.TypedValue<T> getVariable(String key)
getVariable in interface org.mule.runtime.api.interception.InterceptionEventpublic Set<String> getVariableNames()
getVariableNames in interface org.mule.runtime.api.interception.InterceptionEventpublic Optional<org.mule.runtime.api.message.Error> getError()
getError in interface org.mule.runtime.api.interception.InterceptionEventpublic EventContext getContext()
Event from a MessageSource.public DefaultInterceptionEvent message(org.mule.runtime.api.message.Message message)
message in interface org.mule.runtime.api.interception.InterceptionEventpublic DefaultInterceptionEvent variables(Map<String,Object> variables)
variables in interface org.mule.runtime.api.interception.InterceptionEventpublic DefaultInterceptionEvent addVariable(String key, Object value)
addVariable in interface org.mule.runtime.api.interception.InterceptionEventpublic DefaultInterceptionEvent addVariable(String key, Object value, org.mule.runtime.api.metadata.DataType mediaType)
addVariable in interface org.mule.runtime.api.interception.InterceptionEventpublic DefaultInterceptionEvent removeVariable(String key)
removeVariable in interface org.mule.runtime.api.interception.InterceptionEventpublic DefaultInterceptionEvent setError(org.mule.runtime.api.message.ErrorType errorType, Throwable cause)
public Event resolve()
interceptedInput with the result built from
interceptedOutput and resetting .Event with the result.public Event getInterceptionResult()
#interceptedOutput#build().Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.