Class FileTooLargeError
- java.lang.Object
-
- org.jivesoftware.smackx.httpfileupload.element.FileTooLargeError
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
FileTooLargeError_V0_2
public class FileTooLargeError extends java.lang.Object implements ExtensionElement
File Too Large error extension.- See Also:
- XEP-0363: HTTP File Upload
-
-
Constructor Summary
Constructors Modifier Constructor Description FileTooLargeError(long maxFileSize)
protected
FileTooLargeError(long maxFileSize, java.lang.String namespace)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileTooLargeError
from(IQ iq)
java.lang.String
getElementName()
Returns the root element name.long
getMaxFileSize()
java.lang.String
getNamespace()
Returns the root element XML namespace.XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileTooLargeError
public FileTooLargeError(long maxFileSize)
-
FileTooLargeError
protected FileTooLargeError(long maxFileSize, java.lang.String namespace)
-
-
Method Detail
-
getMaxFileSize
public long getMaxFileSize()
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
from
public static FileTooLargeError from(IQ iq)
-
-