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()Set<String>getFeatures()StringgetNamespace()SoftwareInformationgetSoftwareInfo()Gets the software information.booleanisEnabled()voidsetSoftwareInfo(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:
getSoftwareInfoin interfaceSoftwareInfoProvider<SoftwareInformation>- Returns:
- The software information.
-
setSoftwareInfo
public final void setSoftwareInfo(SoftwareInformation softwareInformation)
Gets the software information.- Specified by:
setSoftwareInfoin interfaceSoftwareInfoProvider<SoftwareInformation>- Parameters:
softwareInformation- The software information.
-
getNamespace
public final String getNamespace()
- Specified by:
getNamespacein interfaceExtensionProtocol- Returns:
- "urn:xmpp:dataforms:softwareinfo"
-
isEnabled
public final boolean isEnabled()
- Specified by:
isEnabledin interfaceExtensionProtocol
-
getFeatures
public final Set<String> getFeatures()
- Specified by:
getFeaturesin interfaceDiscoverableInfo
-
getExtensions
public final List<DataForm> getExtensions()
- Specified by:
getExtensionsin interfaceDiscoverableInfo
-
-