Class SlotRequest_V0_2
- java.lang.Object
-
- org.jivesoftware.smack.packet.Stanza
-
- org.jivesoftware.smack.packet.IQ
-
- org.jivesoftware.smackx.httpfileupload.element.SlotRequest
-
- org.jivesoftware.smackx.httpfileupload.element.SlotRequest_V0_2
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.FullyQualifiedElement
,org.jivesoftware.smack.packet.IqView
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.StanzaView
,org.jivesoftware.smack.packet.TopLevelStreamElement
,org.jivesoftware.smack.packet.XmlLangElement
public class SlotRequest_V0_2 extends SlotRequest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMESPACE
-
Fields inherited from class org.jivesoftware.smackx.httpfileupload.element.SlotRequest
contentType, ELEMENT, filename, size
-
-
Constructor Summary
Constructors Constructor Description SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, java.lang.String filename, long size)
SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, java.lang.String filename, long size, java.lang.String contentType)
Create new slot request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
-
Methods inherited from class org.jivesoftware.smackx.httpfileupload.element.SlotRequest
getContentType, getFilename, getSize
-
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, isRequestIQ, isResponseIQ, setType, toString, toXML
-
Methods inherited from class org.jivesoftware.smack.packet.Stanza
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaId
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SlotRequest_V0_2
public SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, java.lang.String filename, long size)
-
SlotRequest_V0_2
public SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, java.lang.String filename, long size, java.lang.String contentType)
Create new slot request.- Parameters:
uploadServiceAddress
- the XMPP address of the service to request the slot from.filename
- name of filesize
- size of file in bytescontentType
- file content type or null- Throws:
java.lang.IllegalArgumentException
- if size is less than or equal to zero
-
-
Method Detail
-
getIQChildElementBuilder
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder xml)
- Overrides:
getIQChildElementBuilder
in classSlotRequest
-
-