|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.RequestContext
MessageProcessor
or Callable
instead
@Deprecated public final class RequestContext
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.
Field Summary | |
---|---|
static boolean |
SAFE
Deprecated. |
static boolean |
UNSAFE
Deprecated. |
Constructor Summary | |
---|---|
protected |
RequestContext()
Deprecated. Do not instanciate. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean SAFE
public static final boolean UNSAFE
Constructor Detail |
---|
protected RequestContext()
Method Detail |
---|
public static MuleEventContext getEventContext()
public static MuleEvent getEvent()
public static MuleEvent setEvent(MuleEvent event)
event
- - the event to set
protected static MuleEvent internalSetEvent(MuleEvent event)
protected 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 MuleEvent newEvent(MuleEvent event, boolean safe)
protected static MuleMessage newMessage(MuleMessage message, boolean safe)
protected static void resetAccessControl(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |