|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.contexts.ServerConversationContext
public class ServerConversationContext
A conversation context is a logical context that lasts longer than a request but shorter than a login session. Conversation state may be passivated or replicated.
| Constructor Summary | |
|---|---|
ServerConversationContext(Map<String,Object> session)
|
|
ServerConversationContext(Map<String,Object> session,
String id)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
flush()
Propagate additions and removals to the HttpSession if the current conversation is long-running, or remove all attributes if it is a temporary conversation. |
Object |
get(Class clazz)
Get a component instance, by its component name, as determined by the @Name annotation value. |
Object |
get(String name)
Get a value by name. |
String[] |
getNames()
Get all names defined in the context. |
ScopeType |
getType()
Get the scope that this context object is associated with, |
boolean |
isSet(String name)
Is the value set? |
void |
remove(String name)
Unset a value. |
void |
set(String name,
Object value)
Set a value. |
String |
toString()
|
void |
unflush()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerConversationContext(Map<String,Object> session)
public ServerConversationContext(Map<String,Object> session,
String id)
| Method Detail |
|---|
public ScopeType getType()
Context
getType in interface Contextpublic Object get(String name)
Context
get in interface Context
public void set(String name,
Object value)
Context
set in interface Contextpublic boolean isSet(String name)
Context
isSet in interface Contextpublic void remove(String name)
Context
remove in interface Contextpublic String[] getNames()
Context
getNames in interface Contextpublic Object get(Class clazz)
Context
get in interface Contextpublic void clear()
public void unflush()
public void flush()
flush in interface Contextpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||