public class SlotRequest_V0_2 extends SlotRequest
IQ.IQChildElementXmlStringBuilder, IQ.Type
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE |
ELEMENT
IQ_ELEMENT, QUERY_ELEMENT
DEFAULT_LANGUAGE, ITEM, language, TEXT
Constructor and Description |
---|
SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress,
String filename,
long size) |
SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress,
String filename,
long size,
String contentType)
Create new slot request.
|
getContentType, getFilename, getIQChildElementBuilder, getSize
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initialzeAsResultFor, isRequestIQ, setType, toString, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTo
public static final String NAMESPACE
public SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size)
public SlotRequest_V0_2(org.jxmpp.jid.DomainBareJid uploadServiceAddress, String filename, long size, String contentType)
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 nullIllegalArgumentException
- if size is less than or equal to zero