Package org.jivesoftware.smack.packet
Interface IqView
-
- All Superinterfaces:
StanzaView,XmlLangElement
- All Known Implementing Classes:
AbstractIqBuilder,Bind,EmptyResultIQ,ErrorIQ,ErrorIQ.Builder,IQ,IqBuilder,IqData,Session,SimpleIQ,UnparsedIQ
public interface IqView extends StanzaView
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IQ.TypegetType()Returns the type of the IQ packet.default booleanisRequestIQ()Return true if this IQ is a request IQ, i.e.default booleanisResponseIQ()Return true if this IQ is a request, i.e.-
Methods inherited from interface org.jivesoftware.smack.packet.StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtension
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlLangElement
getLanguage
-
-
-
-
Method Detail
-
getType
IQ.Type getType()
Returns the type of the IQ packet.- Returns:
- the type of the IQ packet.
-
isRequestIQ
default boolean isRequestIQ()
Return true if this IQ is a request IQ, i.e. an IQ of typeIQ.Type.getorIQ.Type.set.- Returns:
- true if IQ type is 'get' or 'set', false otherwise.
- Since:
- 4.1
-
isResponseIQ
default boolean isResponseIQ()
Return true if this IQ is a request, i.e. an IQ of typeIQ.Type.resultorIQ.Type.error.- Returns:
- true if IQ type is 'result' or 'error', false otherwise.
- Since:
- 4.4
-
-