|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientSession
Represents a session between the server and a client.
Field Summary |
---|
Fields inherited from interface org.jivesoftware.openfire.session.Session |
---|
MAJOR_VERSION, MINOR_VERSION, STATUS_AUTHENTICATED, STATUS_CLOSED, STATUS_CONNECTED |
Method Summary | |
---|---|
boolean |
canFloodOfflineMessages()
Returns true if the offline messages of the user should be sent to the user when the user becomes online. |
PrivacyList |
getActiveList()
Returns the Privacy list that overrides the default privacy list. |
PrivacyList |
getDefaultList()
Returns the default Privacy list used for the session's user. |
org.xmpp.packet.Presence |
getPresence()
Obtain the presence of this session. |
String |
getUsername()
Returns the username associated with this session. |
int |
incrementConflictCount()
Increments the conflict by one and returns new number of conflicts detected on this session. |
boolean |
isAnonymousUser()
Returns true if the authetnicated user is an anonymous user or if the use has not authenticated yet. |
boolean |
isInitialized()
Flag indicating if this session has been initialized once coming online. |
boolean |
isMessageCarbonsEnabled()
Indicates, whether message carbons are enabled. |
boolean |
isOfflineFloodStopped()
Returns true if the user requested to not receive offline messages when sending an available presence. |
void |
setActiveList(PrivacyList activeList)
Sets the Privacy list that overrides the default privacy list. |
void |
setDefaultList(PrivacyList defaultList)
Sets the default Privacy list used for the session's user. |
void |
setInitialized(boolean isInit)
Sets the initialization state of the session. |
void |
setMessageCarbonsEnabled(boolean enabled)
Enables or disables XEP-0280: Message Carbons for this session. |
void |
setPresence(org.xmpp.packet.Presence presence)
Set the presence of this session |
Methods inherited from interface org.jivesoftware.openfire.session.Session |
---|
close, deliverRawText, getAddress, getCreationDate, getHostAddress, getHostName, getLastActiveDate, getNumClientPackets, getNumServerPackets, getServerName, getStatus, getStreamID, isClosed, isSecure, process, validate |
Method Detail |
---|
PrivacyList getActiveList()
void setActiveList(PrivacyList activeList)
activeList
- the Privacy list that overrides the default privacy list.PrivacyList getDefaultList()
void setDefaultList(PrivacyList defaultList)
defaultList
- the default Privacy list used for the session's user.String getUsername() throws UserNotFoundException
UserNotFoundException
- if a user is not associated with a session
(the session has not authenticated yet)boolean isAnonymousUser()
boolean isInitialized()
void setInitialized(boolean isInit)
isInit
- True if the session has been initializedisInitialized()
boolean canFloodOfflineMessages()
boolean isOfflineFloodStopped()
org.xmpp.packet.Presence getPresence()
void setPresence(org.xmpp.packet.Presence presence)
presence
- The presence for the sessionint incrementConflictCount()
boolean isMessageCarbonsEnabled()
void setMessageCarbonsEnabled(boolean enabled)
enabled
- True, if message carbons are enabled.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |