|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.conversation.ConversationRequestParameterProvider
public class ConversationRequestParameterProvider
Adds the required fields (conversationContext) to the request parameters.
This ensures that every URL in the generated page contains the current conversation context id as a query parameter. When the request is submitted to the server this query parameter is then used to select the correct ConversationContext instance from the user session (ie the set of Conversation objects that are associated with this particular window).
Constructor Summary | |
---|---|
ConversationRequestParameterProvider()
|
Method Summary | |
---|---|
java.lang.String[] |
getFields()
Return the names of fields this instance wants to add to the url. |
java.lang.String |
getFieldValue(java.lang.String field)
Return the value for the given field (which should be one of the values returned by the getFields method). |
static boolean |
isInSeparationMode()
Returns true if URLs should be written out unmodified, false if they should have the conversation context id appended as a query parameter. |
static void |
setInSeparationMode(boolean separationMode)
Update a threadlocal flag indicating whether URLs written to the response page should have the special ConversationContext query parameter added to them or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversationRequestParameterProvider()
Method Detail |
---|
public static void setInSeparationMode(boolean separationMode)
Defaults to false (no separation), which means that urls ARE modified.
This can be called by a component before rendering its children in order to skip this url mangling. Any code that calls this method is responsible for restoring the original value at the appropriate time. This is very important, because this is a thread-local value that will be inherited by whatever request this pooled thread is reused for!
public static boolean isInSeparationMode()
public java.lang.String getFieldValue(java.lang.String field)
RequestParameterProvider
getFieldValue
in interface RequestParameterProvider
public java.lang.String[] getFields()
RequestParameterProvider
getFields
in interface RequestParameterProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |