MessageProcessor
or Callable
instead@Deprecated public final class RequestContext extends Object
RequestContext
is a thread context where components can get the
current event or set response properties that will be sent on the outgoing
message.
RequestContext seems to be used to allow thread local mutation of events that are not otherwise available in the scope. so this is a good place to create a new thread local copy - it will be read because supporting code is expecting mutation.
Modifier and Type | Field and Description |
---|---|
static boolean |
SAFE
Deprecated.
|
static boolean |
UNSAFE
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
RequestContext()
Deprecated.
Do not instanciate.
|
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Deprecated.
Resets the current request context (clears all information).
|
static MuleEvent |
getEvent()
Deprecated.
|
static MuleEventContext |
getEventContext()
Deprecated.
|
static ExceptionPayload |
getExceptionPayload()
Deprecated.
|
protected static MuleMessage |
internalRewriteEvent(MuleMessage message,
boolean safe)
Deprecated.
|
protected static MuleEvent |
internalSetEvent(MuleEvent event)
Deprecated.
|
protected static MuleEvent |
newEvent(MuleEvent event,
boolean safe)
Deprecated.
|
protected static MuleMessage |
newMessage(MuleMessage message,
boolean safe)
Deprecated.
|
protected static void |
resetAccessControl(Object object)
Deprecated.
|
static MuleMessage |
safeMessageCopy(MuleMessage message)
Deprecated.
|
static MuleEvent |
setEvent(MuleEvent event)
Deprecated.
Set an event for out-of-scope thread access.
|
static void |
setExceptionPayload(ExceptionPayload exceptionPayload)
Deprecated.
There is no unsafe version of this because it shouldn't be performance critical
|
public static final boolean SAFE
public static final boolean UNSAFE
public static MuleEventContext getEventContext()
public static MuleEvent getEvent()
public static MuleEvent setEvent(MuleEvent event)
event
- - the event to setprotected static MuleMessage internalRewriteEvent(MuleMessage message, boolean safe)
public static void clear()
public static void setExceptionPayload(ExceptionPayload exceptionPayload)
exceptionPayload
- public static ExceptionPayload getExceptionPayload()
public static MuleMessage safeMessageCopy(MuleMessage message)
protected static MuleMessage newMessage(MuleMessage message, boolean safe)
protected static void resetAccessControl(Object object)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.