Package rocks.xmpp.extensions.version
Class SoftwareVersionProtocol
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.version.SoftwareVersionProtocol
-
- All Implemented Interfaces:
ExtensionProtocol,IQHandler,DiscoverableInfo,SoftwareInfoProvider<SoftwareVersion>
public class SoftwareVersionProtocol extends AbstractIQHandler implements SoftwareInfoProvider<SoftwareVersion>
An abstract implementation of XEP-0092: Software Version.It handles IQ queries and provides the required service discovery features.
This class is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description SoftwareVersionProtocol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getFeatures()StringgetNamespace()SoftwareVersiongetSoftwareInfo()Gets the software information.booleanisEnabled()voidsetSoftwareInfo(SoftwareVersion softwareVersion)Gets the software information.-
Methods inherited from class rocks.xmpp.core.stanza.AbstractIQHandler
getPayloadClass, handleRequest
-
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
getExtensions, getIdentities
-
-
-
-
Method Detail
-
getSoftwareInfo
public final SoftwareVersion getSoftwareInfo()
Description copied from interface:SoftwareInfoProviderGets the software information.- Specified by:
getSoftwareInfoin interfaceSoftwareInfoProvider<SoftwareVersion>- Returns:
- The software information.
-
setSoftwareInfo
public void setSoftwareInfo(SoftwareVersion softwareVersion)
Description copied from interface:SoftwareInfoProviderGets the software information.- Specified by:
setSoftwareInfoin interfaceSoftwareInfoProvider<SoftwareVersion>- Parameters:
softwareVersion- The software information.
-
getNamespace
public final String getNamespace()
- Specified by:
getNamespacein interfaceExtensionProtocol- Returns:
- "jabber:iq:version"
-
isEnabled
public final boolean isEnabled()
- Specified by:
isEnabledin interfaceExtensionProtocol
-
getFeatures
public final Set<String> getFeatures()
- Specified by:
getFeaturesin interfaceDiscoverableInfo
-
-