Class SoftwareInformationProtocol
- java.lang.Object
-
- rocks.xmpp.extensions.softwareinfo.SoftwareInformationProtocol
-
- All Implemented Interfaces:
ExtensionProtocol
,DiscoverableInfo
,SoftwareInfoProvider<SoftwareInformation>
public final class SoftwareInformationProtocol extends Object implements SoftwareInfoProvider<SoftwareInformation>
Represents the XEP-0232: Software Information.In order to provide software information to other entities, simply set it.
This class is thread-safe.
- Since:
- 0.9.0
- See Also:
- XEP-0232: Software Information
-
-
Constructor Summary
Constructors Constructor Description SoftwareInformationProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataForm>
getExtensions()
Gets the service discovery extensions as described in XEP-0128: Service Discovery ExtensionsSet<String>
getFeatures()
Gets the features.String
getNamespace()
The protocol's main namespace.SoftwareInformation
getSoftwareInfo()
Gets the software information.boolean
isEnabled()
Indicates whether this protocol is enabled.void
setSoftwareInfo(SoftwareInformation softwareInformation)
Gets the software information.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface rocks.xmpp.extensions.disco.model.info.DiscoverableInfo
getIdentities
-
-
-
-
Method Detail
-
getSoftwareInfo
public final SoftwareInformation getSoftwareInfo()
Gets the software information.- Specified by:
getSoftwareInfo
in interfaceSoftwareInfoProvider<SoftwareInformation>
- Returns:
- The software information.
-
setSoftwareInfo
public final void setSoftwareInfo(SoftwareInformation softwareInformation)
Gets the software information.- Specified by:
setSoftwareInfo
in interfaceSoftwareInfoProvider<SoftwareInformation>
- Parameters:
softwareInformation
- The software information.
-
getNamespace
public final String getNamespace()
The protocol's main namespace. This is used to uniquely identify the extension protocol.- Specified by:
getNamespace
in interfaceExtensionProtocol
- Returns:
- "urn:xmpp:dataforms:softwareinfo"
-
isEnabled
public final boolean isEnabled()
Description copied from interface:ExtensionProtocol
Indicates whether this protocol is enabled.- Specified by:
isEnabled
in interfaceExtensionProtocol
- Returns:
- true, if enabled; false if disabled.
-
getFeatures
public final Set<String> getFeatures()
Description copied from interface:DiscoverableInfo
Gets the features.- Specified by:
getFeatures
in interfaceDiscoverableInfo
- Returns:
- The features.
-
getExtensions
public final List<DataForm> getExtensions()
Description copied from interface:DiscoverableInfo
Gets the service discovery extensions as described in XEP-0128: Service Discovery Extensions- Specified by:
getExtensions
in interfaceDiscoverableInfo
- Returns:
- The service discovery extensions.
-
-