org.jboss.seam.contexts
Class ServerConversationContext

java.lang.Object
  extended by org.jboss.seam.contexts.ServerConversationContext
All Implemented Interfaces:
Context

public class ServerConversationContext
extends Object
implements Context

A conversation context is a logical context that lasts longer than a request but shorter than a login session

Version:
$Revision: 1.20 $
Author:
Gavin King, Thomas Heute

Constructor Summary
ServerConversationContext(ContextAdaptor session)
           
ServerConversationContext(ContextAdaptor 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)
           
 Object get(String name)
           
 String[] getNames()
           
 ScopeType getType()
           
 boolean isSet(String name)
           
 void remove(String name)
           
 void set(String name, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerConversationContext

public ServerConversationContext(ContextAdaptor session)

ServerConversationContext

public ServerConversationContext(ContextAdaptor session,
                                 String id)
Method Detail

getType

public ScopeType getType()
Specified by:
getType in interface Context

get

public Object get(String name)
Specified by:
get in interface Context

set

public void set(String name,
                Object value)
Specified by:
set in interface Context

isSet

public boolean isSet(String name)
Specified by:
isSet in interface Context

remove

public void remove(String name)
Specified by:
remove in interface Context

getNames

public String[] getNames()
Specified by:
getNames in interface Context

get

public Object get(Class clazz)
Specified by:
get in interface Context

clear

public void clear()

flush

public 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. This work may only be done at the end of the request, since we don't know for sure the conversation id until then.

Specified by:
flush in interface Context

toString

public String toString()
Overrides:
toString in class Object