java.lang.Object
org.jivesoftware.smack.packet.Stanza
org.jivesoftware.smack.packet.IQ
org.jivesoftware.smackx.httpfileupload.element.SlotRequest
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.IqView, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.StanzaView, org.jivesoftware.smack.packet.TopLevelStreamElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
Direct Known Subclasses:
SlotRequest_V0_2

public class SlotRequest extends org.jivesoftware.smack.packet.IQ
Upload slot request.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ

    org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder, org.jivesoftware.smack.packet.IQ.ResponseType, org.jivesoftware.smack.packet.IQ.Type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    static final String
     
    protected final String
     
    static final String
     
    protected final long
     

    Fields inherited from class org.jivesoftware.smack.packet.IQ

    IQ_ELEMENT, QUERY_ELEMENT

    Fields inherited from class org.jivesoftware.smack.packet.Stanza

    DEFAULT_LANGUAGE, ITEM, language, TEXT
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size)
     
     
    SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size, String contentType)
    Create new slot request.
    protected
    SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size, String contentType, String namespace)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder
    getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
     
    long
     

    Methods inherited from class org.jivesoftware.smack.packet.IQ

    createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, setType, toString, toXML

    Methods inherited from class org.jivesoftware.smack.packet.Stanza

    addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, setError, setFrom, setNewStanzaId, setStanzaId, setTo, throwIfNoStanzaId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.jivesoftware.smack.packet.Element

    toXML, toXML

    Methods inherited from interface org.jivesoftware.smack.packet.IqView

    isRequestIQ, isResponseIQ

    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.XmlElement

    getQName
  • Field Details

  • Constructor Details

    • SlotRequest

      public SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size)
    • SlotRequest

      public SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size, String contentType)
      Create new slot request.
      Parameters:
      uploadServiceAddress - the XMPP address of the service to request the slot from.
      filename - name of file
      size - size of file in bytes
      contentType - file content type or null
      Throws:
      IllegalArgumentException - if size is less than or equal to zero
    • SlotRequest

      protected SlotRequest(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size, String contentType, String namespace)
  • Method Details

    • getFilename

      public String getFilename()
    • getSize

      public long getSize()
    • getContentType

      public String getContentType()
    • getIQChildElementBuilder

      protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
      Specified by:
      getIQChildElementBuilder in class org.jivesoftware.smack.packet.IQ