public final class Session extends Object implements Serializable
| Constructor and Description |
|---|
Session(User user,
Serializable key,
Remote spy,
Map<String,Serializable> attributes)
Cria uma sessão com a opção de um espião de conexão.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Serializable |
getAttribute(String attributeName)
Obtém um atributo da sessão.
|
Map<String,Serializable> |
getAttributes()
Retorna a coleção de atributos.
|
Object |
getKey()
Getter.
|
User |
getUser()
Getter.
|
int |
hashCode() |
String |
toString() |
public Session(User user, Serializable key, Remote spy, Map<String,Serializable> attributes)
Unreferenced.unreferenced().user - O usuário da sessão.key - Chave de identificação de uma sessão.spy - Espião da conexão.attributes - Os atributos da sessão.public Serializable getAttribute(String attributeName)
attributeName - O nome do atributo.public Map<String,Serializable> getAttributes()
public Object getKey()
public User getUser()
Copyright © 2018. All rights reserved.