Package org.jivesoftware.openfire.net
Class UserAgentInfo
java.lang.Object
org.jivesoftware.openfire.net.UserAgentInfo
- All Implemented Interfaces:
Serializable,Cacheable
Represents user agent information provided by XMPP clients during authentication.
This information includes an optional UUID v4 identifier, software description,
and device description. This information is not exposed to other entities.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserAgentInfoextract(org.dom4j.Element userAgentElement) Extracts and validates user agent information from the authentication element.intReturns the approximate size of the Object in bytes.getId()
-
Constructor Details
-
UserAgentInfo
-
-
Method Details
-
extract
Extracts and validates user agent information from the authentication element.- Parameters:
userAgentElement- the authentication element containing potential user agent data- Returns:
- UserAgentInfo containing the parsed data, or null if no user agent data present
-
getId
-
getSoftware
-
getDevice
-
getCachedSize
Description copied from interface:CacheableReturns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.- Specified by:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
- Throws:
CannotCalculateSizeException- if the size cannot be calculated
-