|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.RequestContext
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.
Constructor Summary | |
---|---|
protected |
RequestContext()
Do not instanciate. |
Method Summary | |
---|---|
static void |
clear()
Resets the current request context (clears all information). |
protected static void |
combineProperties(UMOEvent event,
UMOMessage message)
|
static UMOEvent |
getEvent()
|
static UMOEventContext |
getEventContext()
|
static UMOExceptionPayload |
getExceptionPayload()
|
protected static UMOMessage |
internalRewriteEvent(UMOMessage message,
boolean safe,
boolean required)
|
protected static UMOEvent |
internalSetEvent(UMOEvent event)
|
protected static UMOMessage |
internalWriteResponse(UMOMessage message,
boolean safe,
boolean required)
|
protected static UMOEvent |
newEvent(UMOEvent event,
boolean safe,
boolean required)
|
protected static UMOMessage |
newMessage(UMOMessage message,
boolean safe,
boolean required)
|
protected static void |
noteUse(String type)
|
protected static void |
resetAccessControl(Object object)
|
static UMOMessage |
rewriteEvent(UMOMessage message)
Sets a new message payload in the RequestContext but maintains all other properties (session, endpoint, synchronous, etc.) from the previous event. |
static UMOEvent |
setEvent(UMOEvent event)
Set an event for out-of-scope thread access. |
static void |
setExceptionPayload(UMOExceptionPayload exceptionPayload)
|
static UMOMessage |
writeResponse(UMOMessage message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RequestContext()
Method Detail |
---|
public static UMOEventContext getEventContext()
public static UMOEvent getEvent()
public static UMOEvent setEvent(UMOEvent event)
event
- - the event to set
protected static UMOEvent internalSetEvent(UMOEvent event)
public static UMOMessage rewriteEvent(UMOMessage message)
message
- - the new message payload
protected static UMOMessage internalRewriteEvent(UMOMessage message, boolean safe, boolean required)
public static UMOMessage writeResponse(UMOMessage message)
protected static UMOMessage internalWriteResponse(UMOMessage message, boolean safe, boolean required)
protected static void combineProperties(UMOEvent event, UMOMessage message)
public static void clear()
public static void setExceptionPayload(UMOExceptionPayload exceptionPayload)
public static UMOExceptionPayload getExceptionPayload()
protected static void noteUse(String type)
protected static UMOEvent newEvent(UMOEvent event, boolean safe, boolean required)
protected static UMOMessage newMessage(UMOMessage message, boolean safe, boolean required)
protected static void resetAccessControl(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |