org.mule.impl
Class RequestContext
java.lang.Object
org.mule.impl.RequestContext
- public 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestContext
public RequestContext()
getEventContext
public static UMOEventContext getEventContext()
getEvent
public static UMOEvent getEvent()
setEvent
public static void setEvent(UMOEvent event)
rewriteEvent
public static void rewriteEvent(UMOMessage message)
- Sets a new message payload in the RequestContext but maintains all other
properties (session, endpoint, synchronous, etc.) from the previous event.
- Parameters:
message - - current message payload
writeResponse
public static void writeResponse(UMOMessage message)
clear
public static void clear()
- Resets the current request context (clears all information).
setExceptionPayload
public static void setExceptionPayload(UMOExceptionPayload exceptionPayload)
getExceptionPayload
public static UMOExceptionPayload getExceptionPayload()
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.