|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<Object,Object>
CommandResponder.Session
@ThreadRestricted public static final class CommandResponder.Session
A user session in a command response inteface. It is intended for short service, to respond to a single email message, for example, or a single HTTP request. Its facilities include a keyed Map of ad hoc, session-scope variables.
| Nested Class Summary | |
|---|---|
class |
CommandResponder.Session.ResponderNameComparator
A comparator to compare command-responders by commandName. |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
CommandResponder.Session(String userEmail,
int userTrustLevel,
BundleFormatter bunA,
ReplyBuilder replyBuilder)
Constructs a Session. |
|
| Method Summary | |
|---|---|
BundleFormatter |
bunA()
The application (A) bundle formatter for this session. |
ReplyBuilder |
replyBuilder()
The command-response (CR) builder to use in replying to commands. |
String |
userEmail()
Returns the authenticated email address that identifies the user; or null, if the user is unidentified. |
int |
userTrustLevel()
Returns the trust level of the user. |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CommandResponder.Session(String userEmail,
int userTrustLevel,
BundleFormatter bunA,
ReplyBuilder replyBuilder)
userEmail - per userEmail()userTrustLevel - per userTrustLevel()bunA - per bunA()replyBuilder - per replyBuilder()| Method Detail |
|---|
public BundleFormatter bunA()
replyBuilder()public ReplyBuilder replyBuilder()
bunA()public String userEmail()
ElectoralSubserver.UserSession
userEmail in interface ElectoralSubserver.UserSessionpublic int userTrustLevel()
ElectoralSubserver.UserSession
userTrustLevel in interface ElectoralSubserver.UserSessionListNode.trustLevel()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||